[Desktop-packages] [Bug 1902915] Re: (Snap) Cannot add an attachment to the message
Thank you for your bug report, could you do $ journalctl -f trigger the bug and share any warning or error which was printed there? Do you have xdg-desktop-portal-gtk installed? ** Changed in: thunderbird (Ubuntu) Importance: Undecided => High ** Changed in: thunderbird (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to thunderbird in Ubuntu. https://bugs.launchpad.net/bugs/1902915 Title: (Snap) Cannot add an attachment to the message Status in thunderbird package in Ubuntu: Incomplete Bug description: When writing a new mail, I cannot add an attachment to the message. Steps to reproduce. 1 - Click write 2 - Click attach Expected: A file choose dialog should appear. Actual : Nothing is shown. $lsb_release -rd Description: Ubuntu 20.04.1 LTS Release: 20.04 $snap info thunderbird name: thunderbird summary: Mozilla Thunderbird email application publisher: Canonical✓ store-url: https://snapcraft.io/thunderbird contact: https://launchpad.net/distros/ubuntu/+source/thunderbird license: unset description: | Thunderbird is a free and open source email, newsfeed, chat, and calendaring client, that’s easy to set up and customize. One of the core principles of Thunderbird is the use and promotion of open standards - this focus is a rejection of our world of closed platforms and services that can’t communicate with each other. We want our users to have freedom and choice in how they communicate. commands: - thunderbird snap-id: k1Ml1O9GzSO2QftV0ZlWSbUfQ78nN460 tracking: latest/stable refresh-date: yesterday at 23:37 CET channels: latest/stable:78.4.0 2020-11-03 (92) 69MB - latest/candidate: ↑ latest/beta: ↑ latest/edge: 78.4.0 2020-11-03 (92) 69MB - installed: 78.4.0(92) 69MB - To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/1902915/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1902915] Re: (Snap) Cannot add an attachment to the message
Here's the output of $ journalctl -f -- Logs begin at Fri 2020-03-13 14:32:21 CET. -- Nov 05 17:14:30 main systemd[1]: Starting Hostname Service... Nov 05 17:14:30 main dbus-daemon[1100]: [system] Successfully activated service 'org.freedesktop.hostname1' Nov 05 17:14:30 main systemd[1]: Started Hostname Service. Nov 05 17:15:00 main systemd[1]: systemd-hostnamed.service: Succeeded. Nov 05 17:15:01 main CRON[12883]: pam_unix(cron:session): session opened for user root by (uid=0) Nov 05 17:15:01 main CRON[12884]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Nov 05 17:15:01 main CRON[12883]: pam_unix(cron:session): session closed for user root Nov 05 17:17:01 main CRON[12921]: pam_unix(cron:session): session opened for user root by (uid=0) Nov 05 17:17:01 main CRON[12922]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Nov 05 17:17:01 main CRON[12921]: pam_unix(cron:session): session closed for user root Nov 05 17:17:36 main audit[3814]: AVC apparmor="DENIED" operation="open" profile="snap.thunderbird.thunderbird" name="/etc/fstab" pid=3814 comm="thunderbird-bin" requested_mask="r" denied_mask="r" fsuid=1004 ouid=0 Nov 05 17:17:36 main kernel: audit: type=1400 audit(1604593056.015:61): apparmor="DENIED" operation="open" profile="snap.thunderbird.thunderbird" name="/etc/fstab" pid=3814 comm="thunderbird-bin" requested_mask="r" denied_mask="r" fsuid=1004 ouid=0 Nov 05 17:17:36 main kernel: audit: type=1400 audit(1604593056.015:62): apparmor="DENIED" operation="open" profile="snap.thunderbird.thunderbird" name="/run/mount/utab" pid=3814 comm="thunderbird-bin" requested_mask="r" denied_mask="r" fsuid=1004 ouid=0 Nov 05 17:17:36 main audit[3814]: AVC apparmor="DENIED" operation="open" profile="snap.thunderbird.thunderbird" name="/run/mount/utab" pid=3814 comm="thunderbird-bin" requested_mask="r" denied_mask="r" fsuid=1004 ouid=0 Nov 05 17:17:36 main dbus-daemon[1100]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.481' (uid=1004 pid=3814 comm="/snap/thunderbird/92/thunderbird-bin " label="snap.thunderbird.thunderbird (enforce)") Nov 05 17:17:36 main audit[3814]: AVC apparmor="DENIED" operation="open" profile="snap.thunderbird.thunderbird" name="/run/mount/utab" pid=3814 comm="thunderbird-bin" requested_mask="r" denied_mask="r" fsuid=1004 ouid=0 Nov 05 17:17:36 main kernel: audit: type=1400 audit(1604593056.063:63): apparmor="DENIED" operation="open" profile="snap.thunderbird.thunderbird" name="/run/mount/utab" pid=3814 comm="thunderbird-bin" requested_mask="r" denied_mask="r" fsuid=1004 ouid=0 Nov 05 17:17:36 main systemd[1]: Starting Hostname Service... Nov 05 17:17:36 main dbus-daemon[1100]: [system] Successfully activated service 'org.freedesktop.hostname1' Nov 05 17:17:36 main systemd[1]: Started Hostname Service. Nov 05 17:17:36 main audit[1100]: USER_AVC pid=1100 uid=106 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.482" pid=3814 label="snap.thunderbird.thunderbird" peer_pid=13041 peer_label="unconfined" exe="/usr/bin/dbus-daemon" sauid=106 hostname=? addr=? terminal=?' Nov 05 17:17:36 main kernel: audit: type=1107 audit(1604593056.107:64): pid=1100 uid=106 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.482" pid=3814 label="snap.thunderbird.thunderbird" peer_pid=13041 peer_label="unconfined" exe="/usr/bin/dbus-daemon" sauid=106 hostname=? addr=? terminal=?' Nov 05 17:17:36 main kernel: audit: type=1107 audit(1604593056.107:65): pid=1100 uid=106 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.482" pid=3814 label="snap.thunderbird.thunderbird" peer_pid=13041 peer_label="unconfined" exe="/usr/bin/dbus-daemon" sauid=106 hostname=? addr=? terminal=?' Nov 05 17:17:36 main audit[1100]: USER_AVC pid=1100 uid=106 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.482" pid=3814 label="snap.thunderbird.thunderbird" peer_pid=13041 peer_label="unconfined" And finally ... After installing xdg-desktop-portal-gtk the dialog appears. Maybe I'm missing something. It's a snap, can you explain why I need to install a debian package to get it working. Surely that's the whole point of snaps? -- You received this b
[Desktop-packages] [Bug 1902915] Re: (Snap) Cannot add an attachment to the message
Thanks the reply. > Maybe I'm missing something. It's a snap, can you explain why I need to install a debian package to get it working. The software is self contained in the snap but it does rely on the system to provide a standard environment. The same way than the snap doesn't include a desktop environment or a display server, if you tried to start it on ubuntu server you would get an error that it can't open a display. The portals are installed by default and a Recommends from the desktop for some cycles. Making them a depends of snapd would be wrong because they are only useful for some desktop software though. There is space for improvement there though, you are probably not the only one that are going to end up with a system where important components are missing for a reason or another. I'm going to reassign to snapd suggesting that it should at least display some informative warning in those cases, perhaps offer to install the require component. ** Package changed: thunderbird (Ubuntu) => snapd (Ubuntu) ** Changed in: snapd (Ubuntu) Status: Incomplete => New ** Summary changed: - (Snap) Cannot add an attachment to the message + snapd doesn't ensure portals are available even when they are needed ** Description changed: - When writing a new mail, I cannot add an attachment to the message. - - Steps to reproduce. - 1 - Click write - 2 - Click attach + * Steps to reproduce + - install the thunderbird snap + - remove xdg-desktop-portal-gtk + - start thunderbird + - write an email + - click on attach Expected: A file choose dialog should appear. Actual : Nothing is shown. + + The snap relies on the portal to be available and is failing because + it's not. Could snapd somewhow display some warnings explaining the + issue or better offer to install the portals when needed? + + -- $lsb_release -rd Description: Ubuntu 20.04.1 LTS Release: 20.04 $snap info thunderbird name: thunderbird summary: Mozilla Thunderbird email application publisher: Canonical✓ store-url: https://snapcraft.io/thunderbird contact: https://launchpad.net/distros/ubuntu/+source/thunderbird license: unset description: | - Thunderbird is a free and open source email, newsfeed, chat, and calendaring client, that’s easy - to set up and customize. One of the core principles of Thunderbird is the use and promotion of - open standards - this focus is a rejection of our world of closed platforms and services that - can’t communicate with each other. We want our users to have freedom and choice in how they - communicate. + Thunderbird is a free and open source email, newsfeed, chat, and calendaring client, that’s easy + to set up and customize. One of the core principles of Thunderbird is the use and promotion of + open standards - this focus is a rejection of our world of closed platforms and services that + can’t communicate with each other. We want our users to have freedom and choice in how they + communicate. commands: - - thunderbird + - thunderbird snap-id: k1Ml1O9GzSO2QftV0ZlWSbUfQ78nN460 tracking: latest/stable refresh-date: yesterday at 23:37 CET channels: - latest/stable:78.4.0 2020-11-03 (92) 69MB - - latest/candidate: ↑ - latest/beta: ↑ - latest/edge: 78.4.0 2020-11-03 (92) 69MB - + latest/stable:78.4.0 2020-11-03 (92) 69MB - + latest/candidate: ↑ + latest/beta: ↑ + latest/edge: 78.4.0 2020-11-03 (92) 69MB - installed: 78.4.0(92) 69MB - -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to thunderbird in Ubuntu. https://bugs.launchpad.net/bugs/1902915 Title: snapd doesn't ensure portals are available even when they are needed Status in snapd package in Ubuntu: New Bug description: * Steps to reproduce - install the thunderbird snap - remove xdg-desktop-portal-gtk - start thunderbird - write an email - click on attach Expected: A file choose dialog should appear. Actual : Nothing is shown. The snap relies on the portal to be available and is failing because it's not. Could snapd somewhow display some warnings explaining the issue or better offer to install the portals when needed? -- $lsb_release -rd Description: Ubuntu 20.04.1 LTS Release: 20.04 $snap info thunderbird name: thunderbird summary: Mozilla Thunderbird email application publisher: Canonical✓ store-url: https://snapcraft.io/thunderbird contact: https://launchpad.net/distros/ubuntu/+source/thunderbird license: unset description: | Thunderbird is a free and open source email, newsfeed, chat, and calendaring client, that’s easy to set up and customize. One of the core principles of Thunderbird is the use and promotion of open standards - this focus is a rejection