Add ability to set temporary directory to something else than ~/.arkose

Bug #893866 reported by Ali Ikinci
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Arkose - Desktop Application Sandboxing
Fix Released
Undecided
Unassigned

Bug Description

Adding path to the initialization would enable the user to create a different temporary directory for arkose. The default could still remain the same.

Revision history for this message
Ali Ikinci (ali-ikinci) wrote :

26c26
< def __init__(self, path = "", fstype = "ext4", fssize = None, network = "none", xserver = "none", dbus = "none", dbusproxy = [], pulseaudio = False, devices = [], ctype = "cow", root = "/", bind = [], restrict = [], cow = []):
---
> def __init__(self, fstype = "ext4", fssize = None, network = "none", xserver = "none", dbus = "none", dbusproxy = [], pulseaudio = False, devices = [], ctype = "cow", root = "/", bind = [], restrict = [], cow = []):
104d103
< self.path = path
142,149c141,143
< if self.path == "":
< if not os.path.exists(os.path.expanduser("~/.arkose/")):
< os.mkdir(os.path.expanduser("~/.arkose/"))
< self.path = tempfile.mkdtemp(dir=os.path.expanduser("~/.arkose/"))
< else:
< if not os.path.exists(os.path.abspath(self.path)):
< os.mkdir(os.path.abspath(self.path))
< self.path = tempfile.mkdtemp(dir=os.path.abspath(self.path))
---
> if not os.path.exists(os.path.expanduser("~/.arkose/")):
> os.mkdir(os.path.expanduser("~/.arkose/"))
> self.path = tempfile.mkdtemp(dir=os.path.expanduser("~/.arkose/"))

Revision history for this message
Stéphane Graber (stgraber) wrote :

Supported in the module and cli in trunk.

Changed in arkose:
status: New → Fix Committed
Changed in arkose:
status: Fix Committed → 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.