20.02.2017 14:20, Oliver Grawert пишет:
hi,
Am Montag, den 20.02.2017, 13:54 +0300 schrieb Vasilisc:
I got
/snap/test2/x1/command-test2.wrapper: 8: exec: xdg-open: not found

do you see:

/snap/core/current/usr/local/bin/xdg-open

on your system ?

you also dont need to ship bash: /snap/core/current/bin/bash ships it
...

looks to me like the inclusion of bash might have broken the default
PATH, the latest snap-confine should actually make sure that
usr/local/bin is in there.

ciao
        oli

$ LANG=C ll /snap/core/current/usr/local/bin/
total 1
drwxr-xr-x  2 root root  88 Feb 19 23:50 ./
drwxr-xr-x 10 root root 123 Feb 19 23:50 ../
lrwxrwxrwx  1 root root   6 Feb 19 23:49 apt -> no-apt*
lrwxrwxrwx  1 root root   6 Feb 19 23:49 apt-cache -> no-apt*
lrwxrwxrwx  1 root root   6 Feb 19 23:49 apt-get -> no-apt*
-rwxr-xr-x  1 root root  70 Feb 19 23:49 no-apt*
-rwxr-xr-x  1 root root 127 Feb 19 23:49 xdg-open*

$ echo $PATH
/home/vasilisc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

$ snap list
Name   Version  Rev   Developer  Notes
core   16.04.1  1240  canonical  -
test2  1        x1               -

$ test2
/snap/test2/x1/command-test2.wrapper: 8: exec: xdg-open: not found

snapcraft.yaml
-------------
name: test2
version: "1"
summary: TEst
description: |
    TEST
confinement: strict
architectures: [amd64]

apps:
  test2:
    command: xdg-open "http://google.com";
    plugs: [network, network-bind, x11, home, unity7, gsettings]

parts:
  integration:
   plugin: nil
   stage-packages:
    - libc6
   after: [desktop-gtk2]


--
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