The aesthetics of the file system

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DimitriyPS
:warning: Old Version Published before Godot 3 was released.

When creating file at “user://” in OS Linux, the file will be created: “/home/[user name]/.godot/app_userdata/[Your game]/[file name]”.

Create folder “.godot” in “/home/[user name]/” not very good. Is there a possibility to create folder “.godot” in “/home/[user name]/.config”?

:bust_in_silhouette: Reply From: Warlaan

Godot is following the linux convention.
The “.config”-subfolder contains small config files of different applications but no user files. If you intend to store actual data creating a folder the way Godot does is the way to go.

I mean right now I have in my home folder subfolders like “.steam”, “.adobe”, “.dropbox”, “.kde”, “.gnome”, “.java”, “.thunderbird”… if those companies decide not to put their user folders inside the .config-folder you should probably follow their lead.

I want to keep in “.config” configuration file of my game. Therefore, it is consistent with the intent of directories “.config”.

There is a way to more flexibly distribute the saved files? I can access the root “/home/[user name]”?

DimitriyPS | 2016-06-07 10:50

For what I hear about conventions, everything should go under .config or .cache. The root folder of the user shouldn’t have application-specific folder.

Gokudomatic2 | 2016-06-07 12:01

Given that in my home folder there are 33 such application-specific invisible folders including some generated by linux’s very own applications and companies like Adobe or Mozilla I can safely say that you are misinformed.

But to answer your question, no, I don’t think it’s possible to access the home folder (or any location other than res:// and user:// for that matter) directly, since that would require OS specific code. If you absolutely need to do that you will have to write a C++ module for that.

Warlaan | 2016-06-07 12:46

For what I hear about conventions, everything should go under .config

Actually this is more correct implementation of the storage configuration program files.

Given that in my home folder there are 33 such application-specific invisible folders including some generated by linux’s very own applications and companies like Adobe or Mozilla I can safely say that you are misinformed.

This is not a gross violation. But that is no reason for pride.

But to answer your question, no, I don’t think it’s possible

Thanks for the reply. It is sad that this is so.

DimitriyPS | 2016-06-07 13:22