[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
This has been fixed for some time in snapd. ** Changed in: snapd (Ubuntu) Status: In Progress => Fix Released ** Changed in: apparmor Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
could we close this one? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
https://github.com/snapcore/snapd/pull/4495 ** Changed in: snapd (Ubuntu) Status: Triaged => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
** Changed in: apparmor Status: Invalid => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
Marking AppArmor task as invalid. DBus now implements DBus activation mediation and so the mediated service needs to be updated when specifying peer_label with an activated service. ** Changed in: apparmor Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
** Also affects: dbus Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
Seb pointed at https://cgit.freedesktop.org/dbus/dbus/commit/?id=dc25979eb which provides a possible fix/workaround (in https://forum.snapcraft.io/t /spotify-cannot-open-url/3341/12). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
Adding apparmor since this may be related to libapparmor. zyga will provide more details, but essentially, when userd is not running (ie, dbus activation is used) and a snap tries to use userd to open a url, there is this denial: sty 15 15:34:45 kaedwen dbus-daemon[1242]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/io/snapcraft/Launcher" interface="io.snapcraft.Launcher" member="OpenURL" mask="send" name="io.snapcraft.Launcher" pid=5773 label="snap.gimp.gimp" even though we have this in the policy: dbus (send) bus=session path=/io/snapcraft/Launcher interface=io.snapcraft.Launcher member=OpenURL peer=(label=unconfined), Curiously, the above denial lacks a 'peer_label' (an artful, removing the above rule(s), the denial has 'peer_label=unconfined'). This does not happen on artful and the above rule is sufficient for dbus activation or not. On bionic, once userd is running, there is no denial and the browser is launched. If remove 'peer=(label=unconfined)' from the dbus rule, things work (according to zyga). It isn't clear if this is a bug in libapparmor or dbus-daemon, so adding the apparmor task. Steps to reproduce: 1. snap install gimp 2. ps auxww|grep userd # if 'snap userd' is running, kill it 3. /snap/bin/gimp 4. Help/Gimp Online/Developer Web Site Note if adjusting the profile in /var/lib/snapd/apparmor/profiles/snap.gimp.gimp, there are several rules for com.canonical.SafeLauncher (the old service) and io.snapcraft.Launcher (the new service). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
** Also affects: apparmor Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
Doing some testing it looks like an activation issue. One curious (perhaps the bug itself) aspect is that in the denial we don’t have the peer= definition. For instance in the case of using gimp to open online documentation: sty 15 15:34:45 kaedwen dbus-daemon[1242]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/io/snapcraft/Launcher" interface="io.snapcraft.Launcher" member="OpenURL" mask="send" name="io.snapcraft.Launcher" pid=5773 label="snap.gimp.gimp" I’ll investigate dbus daemon next. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
** Changed in: snapd (Ubuntu) Importance: Undecided => High ** Changed in: snapd (Ubuntu) Status: Confirmed => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
https://forum.snapcraft.io/t/spotify-cannot-open-url/3341/7 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1742687] Re: Launching URLs in snapped applications no longer works in 18.04
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: snapd (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742687 Title: Launching URLs in snapped applications no longer works in 18.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1742687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs