"Using xdg-open in a snap package"
https://olav.ninja/using-xdg-open-in-a-snap/
---------------------------
I modify this solution

BEFORE
  snapd-xdg-open:
   source: https://github.com/ubuntu-core/snapd-xdg-open.git
   plugin : copy
   files:
    data/xdg-open: bin/xdg-open

AFTER
com.canonical.SafeLauncher.service : usr/share/dbus-1/services/com.canonical.SafeLauncher.service
   xdg-open: bin/xdg-open

--------------------------

Script "xdg-open" contain

dbus-send --print-reply --session --dest=com.canonical.SafeLauncher / com.canonical.SafeLauncher.OpenURL string:"$1"

File "com.canonical.SafeLauncher.service" contain
[D-BUS Service]
Name=com.canonical.SafeLauncher
Exec=xdg-open

But I see a problem
Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.SafeLauncher was not provided by any .service files


--
Best regards,
vasilisc

--
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft

Reply via email to