Zim

zim0.49 on Win32 launch failed after installation

Bug #683054 reported by Dudu
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Zim
Fix Released
High
Brendan Kidwell

Bug Description

OS: windows XP
upgraded from 0.48 to 0.49
when launched, i get an error message that launching failed, and application closed.
on zim.log got the following msg:

Traceback (most recent call last):
  File "zim.py", line 18, in <module>
IOError: [Errno 2] No such file or directory: 'C:\\Documents and Settings\\davidb\\.config\\zim\\zim.log'

Workaround: after manually creating this file and path, zim launched OK.

Revision history for this message
Brendan Kidwell (bkidwell) wrote :

I was thinking about this bug after I went to bed. :^)

Every time Zim starts (in Windows), it opens %USERPROFILE%/.config/zim/zim.log for writing errors (this is a change from 0.48 where it would try to write a file in %PROGRAMFILES%, which is BAD). Unfortunately I forgot to add a line of code to create this folder if it doesn't exist -- and that happens if you've never run Zim!

Restating the workaround so it should for for anyone, do this in the Windows Command Prompt:
   mkdir %USERPROFILE%\.config
   mkdir %USERPROFILE%\.config\zim

Then try launching Zim again.

I'll fix this and redo the release by the end of this week.

Changed in zim:
status: New → Confirmed
assignee: nobody → Brendan Kidwell (bkidwell)
Revision history for this message
oversky (mailcwc) wrote :

Please also fix the problem in the portable mode.

Revision history for this message
oversky (mailcwc) wrote :

HI, Brendan Kidwell ,
Did you update the file?

Changed in zim:
importance: Undecided → High
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

In trunk the check if the dir exists is present. Needs testing with next windows installer.

Changed in zim:
status: Confirmed → Fix Committed
Revision history for this message
Brendan Kidwell (bkidwell) wrote :

Tested and confirmed the patch is appropriate and it works.

Revision history for this message
Julie COURRAUD (julie-courraud) wrote :

It worked, thanks !
Julie

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fix released in zim 0.50

Changed in zim:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.