After using library changes cant be saved when quiting phatch.

Bug #386509 reported by Dwarrel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
Fix Released
Medium
Stani

Bug Description

(ubuntu 9.04 32bit phatch version 0.2.0.bzr763)

If you use the library and edit something you will get a error when quiting phatch or when changing to new or different actions. You will get this dialog:

Save last changes to
"/usr/share/phatch/actionlists/polaroid.phatch"?

If you choose yes you will get this error in the terminal:

 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/phatch/pyWx/gui.py", line 719, in
 on_close
     if self.is_save_not_ok(): return
   File "/usr/lib/python2.6/dist-packages/phatch/pyWx/gui.py", line 715, in
 is_save_not_ok
     return not self.on_menu_file_save(None)
   File "/usr/lib/python2.6/dist-packages/phatch/pyWx/gui.py", line 411, in
 on_menu_file_save
     self._save()
   File "/usr/lib/python2.6/dist-packages/phatch/pyWx/gui.py", line 618, in
 _save
     api.save_actionlist(self.filename,data)
   File "/usr/lib/python2.6/dist-packages/phatch/core/api.py", line 502, in
 save_actionlist
     os.rename(filename,filename+'~')
 OSError: [Errno 13] Permission denied

This is because its not allowed to change the library since its located in a root directory. Phatch shouldn't open a dialog to explain you can't save to a root directory or shouldn't ask to save in ~/share/phatch/actionlists.

Also when using a library and going to file -> open/save as.. he will open the folder in /usr/share/phatch/actionlist or when changing highlights /usr/share/phatch/highlights this should be changed to a default location like ~/.local/share/phatch to save time and make it more user friendly.

Stani (stani)
Changed in phatch:
assignee: nobody → stani (stani)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Stani (stani) wrote :

Actionlists are now copied to the user folder.

Changed in phatch:
status: Confirmed → Fix Committed
Stani (stani)
Changed in phatch:
milestone: none → 0.2.1
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.