xdg-open doesn't work only in xubuntu (v2)
Oliver Grawert
ogra at ubuntu.com
Mon Feb 20 13:13:34 UTC 2017
hi,
Am Montag, den 20.02.2017, 14:44 +0300 schrieb Vasilisc:
>
>
> $ echo $PATH
> /home/vasilisc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:
> /sbin:/bin:/usr/games:/usr/local/games:/snap/bin
>
this is not the PATH your snap sees at execution time, just your users
PATH used at login time on the desktop ...
snap-confine sets the PATH variable when a snap application is executed
...
try the following:
$ snap install hello-world
$ hello-world.env|grep ^PATH
that will show what PATH a snap actually sees...
you could try to change your "command:" entry to point directly to the
full path of xdg-open inside the core snap, or ship a shell wrapper
script that properly extends PATH to point to $SNAP/usr/local/bin like:
#!/bin/sh
PATH="$PATH:$SNAP/usr/local/bin"
xdg-open "http://google.com"
and set this as your "command:"
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170220/df0adacb/attachment.sig>
More information about the Snapcraft
mailing list