pulb/mailnag — pull request #51 by Vincent-C (2013-01-05 10:46:27+00:00)
Title: Mailnag autostart file misnamed/misplaced

I'm not sure if this bug first surfaced in 0.5 or 0.5.1, but I've noticed recently that Mailnag is no longer autostarted when I login to gnome shell. Turns out that the autostart file is no longer placed in ~/.config/autostart/mailnag.desktop as with version 0.4, but placed and named as ~/.config/autostartmailnag.desktop (missing a slash, hence why Mailnag is not starting automatically at login; it should be placed in ~/.config/autostart/, not ~/.config).

Test case with version 0.5.1:
```
$ file .config/autostartmailnag.desktop
.config/autostartmailnag.desktop: ASCII text
$ rm .config/autostartmailnag.desktop
$ file .config/autostartmailnag.desktop
.config/autostartmailnag.desktop: ERROR: cannot open `.config/autostartmailnag.desktop' (No such file or directory)
$ mailnag_config
$ file .config/autostartmailnag.desktop
.config/autostartmailnag.desktop: ASCII text
```

Pull request is a quick and dirty fix that works, but as you can probably tell, I'm not really a python coder...there's probably a cleaner way to fix this, but you get the idea. ;)