bardsoftware / ganttproject

Official GanttProject repository.
http://ganttproject.biz
GNU General Public License v3.0
856 stars 301 forks source link

macOS versions always generates ganttproject.log in user folder #1717

Open EGDBE opened 4 years ago

EGDBE commented 4 years ago

Everytime I open GanttProject in macOS Catalina it generates the file "ganttproject.log" in my user folder. It would be great to prevent it. This is not the place for log files.

dbarashev commented 4 years ago

On the other hand, it is a place which surely exists, surely writable and relatively easy to find for an average macOS user. What's so terribly wrong with the log file in user's $HOME directory?

juananpe commented 4 years ago

Maybe another solution could be to add a .ganttproject directory in $HOME and save there the two files that GanttProject generates right now (.ganttproject file - an XML file with options and settings - and the .ganttproject.log file)

dbarashev commented 4 years ago

Ironically, @EGDBE doesn't mind .ganttproject file being in the user folder. Is it because home folder is the right place for config files or just because it is hidden?

EGDBE commented 4 years ago

1) If all apps did put its logs at home directory, it would become a jungle.

2) One reasonable candidate to put the log is in the own app directory: "/Applications/GanttProject.app" because:

Thanks

EGDBE commented 4 years ago

@dbarashev no config or log files should be placed at home directory (regardless it's hidden or visible). As I said, the proper path is the own app container.

Thanks

dbarashev commented 4 years ago

the proper path is the own app container.

May I kindly ask you to provide any proofs of that?

From my side, I can tell that the proper path is ~/Library/Logs. Proofs:

For preferences, ~/Library/Preferences is the right place: https://stackoverflow.com/questions/410013/where-do-osx-applications-typically-store-user-configuration-data

I admit it might be better than just plain user home. Although ~/Library is hidden in the Finder and thus requires additional instructions for locating, it seems it can be viewed with Console app which is ok.

EGDBE commented 4 years ago

I agree ~/Library/Logs and ~/Library/Preferences are good places.

Thanks