FreeEMS Issues - EMStudio
View Issue Details
0000747EMStudioGeneralpublic2012-10-16 15:462013-01-15 10:24
Fred 
malcom2073 
normalminoralways
assignedopen 
AllAllAll
0.0.1-SNAPSHOT 
0.0.1 
Improvement
0000747: Better file handling for log output dirs
See parent 0000744
No tags attached.
child of 0000744assigned malcom2073 Better file handling 

Notes
(0002347)
Fred   
2012-10-16 15:47   
This may be OK as is, however I've seen the directories moving around by themselves, so I'm suspicious.
(0002530)
malcom2073   
2013-01-14 23:56   
According to Fred, a dmg image installed package on OSX uses the applications directory for logs. (oops! That's bad)

According to me, Windows does it in C:\Program Files\EMStudio, and Linux does it locally wherever the application is run (bad!) This needs to be changed fairly soon.

Fred: Is the env variable HOME valid on OSX? Eg, would I be allowed to default to $HOME/.EMStudio/logs?

Should logs be inside .EMStudio, or somewhere else? It needs a default location, until the user changes it.

(0002531)
Fred   
2013-01-15 00:09   
$HOME should be valid, however it may not be the best place to put them on OSX. It is one of the valid places though. Logs should definitely not go inside a hidden directory, however. They should go in an EMStudio/logs/ directory or similar, by default.

~/
~/Desktop/
and another that I forget right now.

On Linux ~/ is the right choice.

On Win, it's hard to say, but either desktop or somewhere in user data or similar.

FWIW MrOnion said his logs dumped somewhere else.

Careful not to confuse current/working dir with home dir.
(0002532)
malcom2073   
2013-01-15 10:22   
We have a ~/.EMStudio/ hidden folder for configuration, should this be changed to be ~/EMStudio, or should there be two folders?

On windows, there are two locations, AppData, and My Documents. Configuration goes in AppData, and logs should go in My Documents... but the more I think about it, the more I think that everything should go in My Documents or ~/EMStudio, and nothing should be hidden.

Most Linux installs have a $HOME/Documents folder, I consider that akin to My Documents. Though while appropriate to use that on windows for application documents, I don't know how valid that concept is on linux/osx?
(0002533)
Fred   
2013-01-15 10:24   
I think the config and other "sytem level" files should stay hidden/tucked away. Device config/tunes/logs/logdefs etc should NOT be hidden and are day-to-day bread and butter files that a user will deal with and copy and email and upload and maintain etc.

This separation exists on all platforms, but the dirs for each are distinct.