Bug#996016: libreoffice: fails to send email
[ please always keep the Bug in CC so that discussions about it get recorded. Readding. ] Hi. Am 10.10.21 um 20:44 schrieb Alex: > And what is in LO settings? > LO Settings point to /usr/lib/thunderbird OK, as I guessed. Then anything can be in KDEs session doesn't matter. > What if you set your mailer as xdg-email? > > > That works as expected. Thanks. > As expected. And xdg-email knows what you want thunderbird :-) > I just tried it: LOs default has sensible-lomua set. That one opened >> Thunderbird in my GNOME and happily set mail. >> Although best is to keep it as sensible-lomua which then runs xdg-open >> case `basename "$MAILER"` in >> sensible-lomua) >> if [ -x /usr/bin/xdg-email ] ; then >> MAILER=/usr/bin/xdg-email [...] And as said sensible-lomua (which is the default setting in LO) is more or less a redirection also defaulting to actually calling xdg-email anyway. Can we close this as "user configuration error"? :) Regards, Rene
Bug#996016: libreoffice: fails to send email
found 996016 1:7.0.4-4 retitlle 996016 ibreoffice: fails to send email with Thunderbird set as mailer in KDE tag 996016 + moreinfo tag 996016 + unreproducible thanks Hi, Am 10.10.21 um 11:30 schrieb Alex: > Package: libreoffice > Severity: normal > > Dear Maintainer, > > When I created a document in libreoffice and when I would send it as > mail attachment, Libreoffice simply doesn't open my mailprogram > defined in KDE. > When I start libreoffice in a shell, I got error messages when sending > the document as mail. In fact, I defined Thunderbird as my mail > program in KDE->Settings. And what is in LO settings? > As you can see, I got a permission denied on /usr/bin/thunderbird. I checked the permissions and those seemed to be ok, and when I start thunderbird directly in the shell, it will start. > So I disabled apparmor. I completely uninstalled it and after a > reboot, the sending by mail attachment works as expected. > > This is only an ugly workaround to get it work again, so help please. > What if you set your mailer as xdg-email? That one is explicitely allowed: profile libreoffice-senddoc /usr/lib/libreoffice/program/senddoc { #include #include /{usr/,}bin/sh rmix, /{usr/,}bin/bash rmix, /{usr/,}bin/dash rmix, /{usr/,}bin/sed rmix, /usr/bin/dirname rmix, /usr/bin/basename rmix, /{usr/,}bin/grep rmix, /{usr/,}bin/uname rmix, /usr/bin/xdg-open rPUx, /usr/bin/xdg-email rPUx, /dev/null rw, /usr/lib/libreoffice/program/uri-encode rmpux, /usr/share/libreoffice/share/config/* r, owner @{HOME}/.config/libreoffice{,dev}/?/user/uno_packages/cache/log.txt rw, } xdg-email will send with your preferred e-mail programm (see man xdg-email). I just tried it: LOs default has sensible-lomua set. That one opened Thunderbird in my GNOME and happily set mail. case `basename "$MAILER"` in sensible-lomua) if [ -x /usr/bin/xdg-email ] ; then MAILER=/usr/bin/xdg-email elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kde-open ] \ || [ -x /usr/bin/gnome-open ] \ || [ -x /usr/bin/xdg-open ]; then # use an undefined mailer, to trigger the default handling MAILER=undefined elif [ -n "$GNOME_DESKTOP_SESSION_ID" -a -x /usr/bin/evolution ]; then MAILER=/usr/bin/evolution elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kmail ]; then MAILER=/usr/bin/kmail elif [ -x /usr/bin/evolution ]; then # default MAILER=/usr/bin/evolution elif [ -x /usr/bin/icedove ]; then # fallback MAILER=/usr/bin/icedove elif [ -x /usr/bin/thunderbird ]; then # fallback MAILER=/usr/bin/thunderbird fi ;; esac ... using xdg-email. Regards, Rene
Bug#996016: libreoffice: fails to send email
Package: libreoffice Severity: normal Dear Maintainer, When I created a document in libreoffice and when I would send it as mail attachment, Libreoffice simply doesn't open my mailprogram defined in KDE. When I start libreoffice in a shell, I got error messages when sending the document as mail. In fact, I defined Thunderbird as my mail program in KDE->Settings. The error message I got is: moz=/usr/bin/thunderbird FOPTS=-L Befehlzeile: if file -L /usr/bin/thunderbird | grep script > /dev/null && grep [NM]PL /usr/bin/thunderbird > /dev/null /usr/lib/libreoffice/program/senddoc: 64: file: Permission denied 3 $1=/usr/bin/thunderbird /usr/bin/thunderbird -compose subject='FEO',attachment='file:///tmp/lu3553l027nu.tmp/lu3553l027nx.tmp/FEO.ods' $2=subject='FEO',attachment='file:///tmp/lu3553l027nu.tmp/lu3553l027nx.tmp/FEO.ods' /usr/lib/libreoffice/program/senddoc: 77: /usr/bin/thunderbird: Permission denied I modified the script senddoc with several echo commands to get an output which component is causing the error. As you can see, I got a permission denied on /usr/bin/thunderbird. I checked the permissions and those seemed to be ok, and when I start thunderbird directly in the shell, it will start. So I disabled apparmor. I completely uninstalled it and after a reboot, the sending by mail attachment works as expected. This is only an ugly workaround to get it work again, so help please. Thank you -- System Information: Debian Release: 11.1 APT prefers stable APT policy: (700, 'stable'), (500, 'stable-updates'), (500, 'stable-security') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-9-amd64 (SMP w/8 CPU threads) Locale: LANG=de_LU.UTF-8, LC_CTYPE=de_LU.UTF-8 (charmap=UTF-8), LANGUAGE=en_US Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libreoffice depends on: ii libreoffice-base 1:7.0.4-4 ii libreoffice-calc 1:7.0.4-4 ii libreoffice-core 1:7.0.4-4 ii libreoffice-draw 1:7.0.4-4 ii libreoffice-impress 1:7.0.4-4 ii libreoffice-math 1:7.0.4-4 ii libreoffice-report-builder-bin 1:7.0.4-4 ii libreoffice-writer 1:7.0.4-4 ii python3-uno 1:7.0.4-4 Versions of packages libreoffice recommends: ii fonts-crosextra-caladea 20130214-2.1 ii fonts-crosextra-carlito 20130920-1.1 ii fonts-dejavu 2.37-2 ii fonts-liberation 1:1.07.4-11 ii fonts-liberation2 2.1.3-1 ii fonts-linuxlibertine 5.3.0-6 ii fonts-noto-core 20201225-1 ii fonts-noto-extra 20201225-1 ii fonts-noto-mono 20201225-1 ii fonts-noto-ui-core 20201225-1 pn fonts-sil-gentium-basic ii libreoffice-java-common 1:7.0.4-4 pn libreoffice-nlpsolver ii libreoffice-report-builder 1:7.0.4-4 pn libreoffice-script-provider-bsh pn libreoffice-script-provider-js pn libreoffice-script-provider-python ii libreoffice-sdbc-mysql 1:7.0.4-4 ii libreoffice-sdbc-postgresql 1:7.0.4-4 pn libreoffice-wiki-publisher Versions of packages libreoffice suggests: ii cups-bsd 2.3.3op2-3+deb11u1 ii default-jre [java8-runtime] 2:1.11-72 ii firefox-esr 78.15.0esr-1~deb11u1 ii ghostscript 9.53.3~dfsg-7+deb11u1 ii gnupg 2.2.27-2 pn gpa ii gstreamer1.0-libav 1.18.4-3 ii gstreamer1.0-plugins-bad 1.18.4-3 ii gstreamer1.0-plugins-base 1.18.4-2 ii gstreamer1.0-plugins-good 1.18.4-2 ii gstreamer1.0-plugins-ugly 1.18.4-2 ii hunspell-de-at [hunspell-dictionary] 20161207-9 ii hunspell-de-ch [hunspell-dictionary] 20161207-9 ii hunspell-de-de [hunspell-dictionary] 20161207-9 ii hunspell-en-us [hunspell-dictionary] 1:2019.10.06-1 ii hyphen-de [hyphen-hyphenation-patterns] 1:7.1.0~rc3-3 ii imagemagick 8:6.9.11.60+dfsg-1.3 ii imagemagick-6.q16 [imagemagick] 8:6.9.11.60+dfsg-1.3 ii libgl1 1.3.2-1 pn libofficebean-java pn libreoffice-gnome | libreoffice-plasma pn libreoffice-grammarcheck ii libreoffice-help-de [libreoffice-help] 1:7.0.4-4 ii libreoffice-l10n-de [libreoffice-l10n] 1:7.0.4-4 pn libreoffice-librelogo ii libsane1 1.0.31-4.1 ii libxrender1 1:0.9.10-1 ii myspell-fr-gut [myspell-dictionary] 1:1.0-32.1 ii mythes-de [mythes-thesaurus] 20160424-4 ii mythes-de-ch [mythes-thesaurus] 20160424-4 pn openclipart2-libreoffice | openclipart-libreoffice ii openjdk-11-jre [java8-runtime] 11.0.12+7-2 pn pstoedit ii thunderbird 1:78.14.0-1~deb11u1 pn unixodbc