Incorrect use of StelFileMgr::getUserDir()
Bug #512045 reported by
treaves
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Fix Released
|
Medium
|
Unassigned |
Bug Description
On a Mac, there is only one thing that should be stored at getUserDir(): the preferences file. That's it. Everything else should be stored at getUsersDataDir
Changed in stellarium: | |
status: | New → Fix Committed |
milestone: | none → 0.10.3 |
Changed in stellarium: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The current gtUserDir() needs to be renamed to getUserPreferen cesDirectoryNam e() and developers should know to use getUsersDataDir ectoryName( ) for their won needs. On a Mac, the only thing that should be in the preferences directory is the config file.
As most preferences on a Mac are plist, and Stellarium does not use this, it'd also be fine to put everything under the data directory. Right now though, some things use the correct path, and some do not. This can cause the application to crash.