Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000747EMStudioGeneralpublic2012-10-16 15:462013-01-15 10:24
Assigned Tomalcom2073 
PlatformAllOSAllOS VersionAll
Product Version0.0.1-SNAPSHOT 
Target Version0.0.1Fixed in Version 
Summary0000747: Better file handling for log output dirs
DescriptionSee parent 0000744
TagsNo tags attached.
Issue TypeImprovement
Attached Files

- Relationships
child of 0000744assignedmalcom2073 Better file handling 

-  Notes
User avatar (0002347)
Fred (administrator)
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.
User avatar (0002530)
malcom2073 (manager)
2013-01-14 23:56
edited on: 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.

User avatar (0002531)
Fred (administrator)
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.

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.
User avatar (0002532)
malcom2073 (manager)
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?
User avatar (0002533)
Fred (administrator)
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.

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker