Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.openttd folder #6049

Closed
DorpsGek opened this issue Jun 26, 2014 · 5 comments
Closed

.openttd folder #6049

DorpsGek opened this issue Jun 26, 2014 · 5 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

axet opened the ticket and wrote:

Please change default storage dirrectory to the ~/.openttd

On mac machines openttd keep configs into ~/Documents/openttd folder, which is wrong.

Reported version: Version?
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/6049
@DorpsGek
Copy link
Member Author

planetmaker wrote:

On a Mac, the ~/.openttd folder is quite wrong. See also the OSX guide on filesystem layout https://developer.apple.com/library/mac/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html


This comment was imported from FlySpray: https://bugs.openttd.org/task/6049#comment13390

@DorpsGek
Copy link
Member Author

axet wrote:

Yep, you are correct.

Application Support

Use this directory to store all app data files except those associated with the user’s documents. For example, you might use this directory to store app-created data files, configuration files, templates, or other fixed or modifiable resources that are managed by the app. An app might use this directory to store a modifiable copy of resources contained initially in the app’s bundle. A game might use this directory to store new levels purchased by the user and downloaded from a server.
All content in this directory should be placed in a custom subdirectory whose name is that of your app’s bundle identifier or your company.
In iOS, the contents of this directory are backed up by iTunes.

"Application Support Folder" key:"asup"

http://stackoverflow.com/questions/8430777/programatically-get-path-to-application-support-folder

How others do?

http://www.chromium.org/user-experience/user-data-directory

Windows XP

Google Chrome: C:\Documents and Settings%USERNAME%\Local Settings\Application Data\Google\Chrome\User Data\Default
Chromium: C:\Documents and Settings%USERNAME%\Local Settings\Application Data\Chromium\User Data\Default
Windows 8 or 7 or Vista

Google Chrome: C:\Users%USERNAME%\AppData\Local\Google\Chrome\User Data\Default
Chromium: C:\Users%USERNAME%\AppData\Local\Chromium\User Data\Default
Mac OS X

Google Chrome: ~/Library/Application Support/Google/Chrome/Default
Chromium: ~/Library/Application Support/Chromium/Default
Linux

Google Chrome: ~/.config/google-chrome/Default
Chromium: ~/.config/chromium/Default


This comment was imported from FlySpray: https://bugs.openttd.org/task/6049#comment13392

@DorpsGek
Copy link
Member Author

planetmaker wrote:

Thank you for the copy&paste job.

Going by the actual reference from apple, neither of the directories quoted by the directory reference fits the contents of the OpenTTD directory entirely. It would need splitting up into several folders, some would go to Library/Preferences/OpenTTD, others to Library/Application Support/OpenTTD and still keep some of its contents, at least savegames and screenshots, in the current place in Documents/OpenTTD. Thus changing the paths seems not exactly a nice solution nor "the correct one" as it would scatter around OpenTTD's files around the directory tree and thus make it even harder to find the files you need. And we still would need to support the old directory places for legacy reasons. Thus I don't see what we gain by a change.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6049#comment13393

@DorpsGek
Copy link
Member Author

axet wrote:

It is not a wiki, copy n pase not a crime. But thank you for being sarcastic and not mad.

You can split it into several folders, but honestly openttd save file is not exactly a document. Only files which I manually saved and placed into Documents folder are. All automatic saves, confics and other files (and that is what makes me crazy when someone trash my Documents folder without my notices) should still go to Application folders and not to Documents. Of cource you can split it more precice if you wish, but I feel it is not a nessecery.

From all application all ran on my Mac, OpenTTD first application who trash my Documents folder.

Anyway, TTD and OpenTTD best game ever! Feel free to close this bug if you do not share my view points.

Wish the best.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6049#comment13394

@DorpsGek
Copy link
Member Author

andythenorth closed the ticket.

Reason for closing: Won't implement

I am using mac OS, and it doesn't bother me much that OpenTTD writes into the ~/Documents location. Can't speak for others.

Flyspray clean up, this won't likely change, so closing, thanks.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6049

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant