Upgrade issues due to config file changes from 1.3 to 1.4

Bug #660143 reported by Andrew Starr-Bochicchio
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
StackApplet
Fix Released
High
Nathan Osman

Bug Description

andrew@andrew-laptop:~$ python /usr/bin/stackapplet/stackapplet.py
Traceback (most recent call last):
  File "/usr/bin/stackapplet/prefs_dialog.py", line 123, in OnOK
    prefs.save_settings()
  File "/usr/bin/stackapplet/config_store.py", line 83, in save_settings
    f = open(CONFIG_FILE_NAME,'w')
IOError: [Errno 20] Not a directory: '/home/andrew/.stackapplet/config'

At first, I assumed you weren't testing for the dir correctly, but looking at the code it seems you do. So I tried creating the file by hand to see if it would work.

andrew@andrew-laptop:~$ mkdir -p /home/andrew/.stackapplet/
mkdir: cannot create directory `/home/andrew/.stackapplet/': File exists

So the problem is that in version 1.3 the config file is "~/.stackapplet", but in 1.4, the config file is "~/.stackapplet/config" Which mean the new dir won't be created unless the old file is moved out of the way.

description: updated
Revision history for this message
Nathan Osman (george-edison55) wrote :

This is a known issue. The plan is to have StackApplet check to see if the 1.3 conf. file exists when it first starts - and if it does, import the settings, rename / delete the file, and continue loading.

Changed in stackapplet:
assignee: nobody → George Edison (george-edison55)
importance: Undecided → High
status: New → In Progress
Changed in stackapplet:
status: In Progress → Fix Committed
Changed in stackapplet:
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.