snap try works, but executing the application doesn't work in some directories like /tmp
Bug #1666553 reported by
Didier Roche-Tolomelli
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Undecided
|
Unassigned | ||
snapd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
$ snap version
snap 2.22.3
snapd 2.22.3
series 16
ubuntu 16.04
1. create a snap under /tmp/foo and cd into it.
2. build it with snapcraft prime
3. snap try prime/
4. run any executable inside the snap, and you will get:
cannot change current working directory to the original directory: No such file or directory
snap try should either fail stating clearly why we wouldn't be able to execute (path overriden by snap-confine) or we should workaround through a temporary mount point available in $SNAP
Status changed to 'Confirmed' because the bug affects multiple users.