please set TMPDIR=/tmp when launching snaps

Bug #1628193 reported by Leo Arias
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned
snap-confine (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

After trying to snap an application that uses sqlite, following mhall's advice I had to add a wrapper that sets SQLITE_TMPDIR=/tmp. That is a simple workaround, but ugly. It will be better to set TMPDIR, and then sqlite will use that path with no additinal work.

From Jamie S:
Hmmm, we used to export TMPDIR but it seems that it was dropped when moving to
snap reexec. Can you file a bug so that sqlite users don't have to worry about
SQLITE_TMPDIR unless they want to?

Revision history for this message
Michael Vogt (mvo) wrote :

snap-confine sets up the private tmp and also sets: TMPDIR, TEMPDIR to /tmp.

Revision history for this message
Michael Vogt (mvo) wrote :

This is fixed:

$ snap run --shell test-snapd-tools.success
$ echo $SNAP
/snap/test-snapd-tools/3
$ echo $TMPDIR
/tmp

Changed in snap-confine (Ubuntu):
status: New → Fix Released
Changed in snappy:
status: Triaged → Fix Released
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.