TMPDIR is being lost for snap commands
Bug #1457183 reported by
Michael Terry
on 2015-05-20
This bug affects 2 people
| Affects | Status | Importance | Assigned to | Milestone | ||
|---|---|---|---|---|---|---|
| snap-confine | Status tracked in Trunk | |||||
| | 15.04 |
Undecided
|
Michael Terry | |||
| | Trunk |
Undecided
|
Michael Terry | |||
Bug Description
In the wrapper scripts that get installed in /apps/bin, TMPDIR, TEMPDIR, and SNAP_APP_TMPDIR are all set to the same thing.
But in the eventual command that gets run, only TEMPDIR and SNAP_APP_TMPDIR still have that value. TMPDIR is empty and it shouldn't be.
Related branches
lp:~mterry/snap-confine/tmpdir
- John Lenton: Approve on 2015-06-03
-
Diff: 71 lines (+45/-2)2 files modifiedsrc/main.c (+11/-2)
tests/test_tmpdir (+34/-0)
lp:~mterry/snap-confine/tmpdir-15.04
- John Lenton: Approve on 2015-06-04
-
Diff: 113 lines (+55/-10)3 files modifiedMakefile (+2/-0)
src/main.c (+19/-10)
tests/test_tmpdir (+34/-0)
| Michael Terry (mterry) wrote : | #2 |
This appears to be because ubuntu-
| Changed in ubuntu-core-launcher: | |
| assignee: | nobody → Michael Terry (mterry) |
Michael Terry (mterry)
on 2015-06-01
| Changed in ubuntu-core-launcher: | |
| status: | New → In Progress |
To post a comment you must log in.


Here's a tiny shell snap to reproduce. It just echos the various temp variables.