snap try works, but executing the application doesn't work in some directories like /tmp

Bug #1666553 reported by Didier Roche-Tolomelli
12
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

Zygmunt Krynicki (zyga)
Changed in snappy:
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapd (Ubuntu):
status: New → Confirmed
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

If you instead try to run the same from a non-tmp dir you get an error such as

  `/var/lib/snapd/snaps/your-snap_x1.snap` is missing

Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.