Comment 3 for bug 1031876

Revision history for this message
Chris Wilson (notgary-deactivatedaccount) wrote : Re: Crash on startup when certain files or folders are missing from the user's config settings.

After some testing I've found that manually running the daemon, either from the daily build with the twistd command or from the installed package with the accomplishments-daemon command, rectifies the problem. There are two lines printed to the terminal when running either of them:

Accomplishments install paths: /home/notgary/accomplishments:/usr/share/accomplishments
Trophies path: /home/notgary/.local/share/accomplishments/trophies

Examining the daemon source code just before these two lines are printed show that the test for creating the directories is already taking place when it is started up. The problem appears to be that the daemon is already running when the the dirs are deleted so it doesn't have the chance to recreate them before the viewer starts and crashes.