20.02.2017 16:13, Oliver Grawert пишет:
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
I create new snapcraft.yaml
===============================
name: test2
version: "1"
summary: TEst
description: |
TEST
confinement: strict
architectures: [amd64]
apps:
test2:
command: run.sh
plugs: [network, network-bind, x11, home, unity7, gsettings]
parts:
files:
plugin: dump
source: files-project
integration:
plugin: nil
stage-packages:
- libc6
after: [desktop-gtk2]
==================================
$ test2
/snap/test2/x1/bin/run.sh: line 4: xdg-open: command not found
$ cat /snap/test2/current/bin/run.sh
#!/bin/bash
PATH="$PATH:$SNAP/usr/local/bin"
xdg-open "http://google.com"
------------------------
I try install/remove snapd-xdg-open ... nothing!
--
Best regards,
vasilisc
--
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/snapcraft