Use the tmp dir in the activity root dir instead of /tmp.
This commit is contained in:
parent
1e740022d0
commit
1c6abcf20f
@ -488,7 +488,8 @@ class Activity(Window, gtk.Container):
|
|||||||
if self._jobject.file_path:
|
if self._jobject.file_path:
|
||||||
self.write_file(self._jobject.file_path)
|
self.write_file(self._jobject.file_path)
|
||||||
else:
|
else:
|
||||||
file_path = os.path.join(tempfile.gettempdir(), '%i' % time.time())
|
file_path = os.path.join(self.get_activity_root(), 'tmp',
|
||||||
|
'%i' % time.time())
|
||||||
self.write_file(file_path)
|
self.write_file(file_path)
|
||||||
self._owns_file = True
|
self._owns_file = True
|
||||||
self._jobject.file_path = file_path
|
self._jobject.file_path = file_path
|
||||||
|
@ -4,6 +4,7 @@ sugar_PYTHON = \
|
|||||||
alert.py \
|
alert.py \
|
||||||
animator.py \
|
animator.py \
|
||||||
combobox.py \
|
combobox.py \
|
||||||
|
composite.py \
|
||||||
entry.py \
|
entry.py \
|
||||||
icon.py \
|
icon.py \
|
||||||
iconentry.py \
|
iconentry.py \
|
||||||
@ -14,6 +15,7 @@ sugar_PYTHON = \
|
|||||||
palette.py \
|
palette.py \
|
||||||
palettegroup.py \
|
palettegroup.py \
|
||||||
panel.py \
|
panel.py \
|
||||||
|
render.py \
|
||||||
roundbox.py \
|
roundbox.py \
|
||||||
spreadlayout.py \
|
spreadlayout.py \
|
||||||
style.py \
|
style.py \
|
||||||
@ -23,4 +25,5 @@ sugar_PYTHON = \
|
|||||||
toolcombobox.py \
|
toolcombobox.py \
|
||||||
tray.py \
|
tray.py \
|
||||||
window.py \
|
window.py \
|
||||||
|
x11.py \
|
||||||
xocolor.py
|
xocolor.py
|
||||||
|
Loading…
Reference in New Issue
Block a user