Add ability to set temporary directory to something else than ~/.arkose
Bug #893866 reported by
Ali Ikinci
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.
Changed in arkose: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
26c26 exists( os.path. expanduser( "~/.arkose/ ")): os.path. expanduser( "~/.arkose/ ")) mkdtemp( dir=os. path.expanduser ("~/.arkose/ ")) exists( os.path. abspath( self.path) ): os.path. abspath( self.path) ) mkdtemp( dir=os. path.abspath( self.path) ) exists( os.path. expanduser( "~/.arkose/ ")): os.path. expanduser( "~/.arkose/ ")) mkdtemp( dir=os. path.expanduser ("~/.arkose/ "))
< 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.
< os.mkdir(
< self.path = tempfile.
< else:
< if not os.path.
< os.mkdir(
< self.path = tempfile.
---
> if not os.path.
> os.mkdir(
> self.path = tempfile.