-
Notifications
You must be signed in to change notification settings - Fork 276
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
Changing the config + log folder location? #1583
Comments
After some quick searching, it looks like using So even though it seems to be the latest recommendation, it doesn't seem to be widely adopted yet. I imagine the old directories have a lot of momentum, with users expecting them to be there, and lots of documentation still referring to them. I agree that if we'd make a change, the renaming to Another thing to take into account though is that |
Personally I prefer everything in the same folder (i.e. Separating global config into /etc and logs into /var/log makes sense for long-running processes such as Apache or X11, where global configuration (i.e. touching files in /etc) happens sporadically (e.g. during setup or server migration) and logs in /var/log are either an important part of auditing (so you want all relevant logs from multiple processes in a single location) or something you rarely look at (i.e. you can delete everything in /var/log to free up space and forget about it).
Apps that are incredibly specific or only run while the user is interacting with it IMHO are best to place everything in a single folder. As for the use of For example it's very useful for me that Chrome, Firefox and Mesa (the gpu driver) writes into it. Because I know that deleting these folders are safe when I need to free up space or fix that malfunctioning app (without breaking config). But these are apps that are part of my daily life. So my stance is to either:
The rest IMHO are excessive for Gazebo and would only increase the mental load. |
The It seems the ideal thing to do is to use the
I think this is because these aren't "desktop" applications per se. The XDG spec is largely for things that are GUI applications, which Gazebo is. As a datapoint, modern GUI things like |
I would definitely advocate adopting the XDG base directory specifications for where to put stuff. It makes it much easier to version control configuration files separate from data files between machines. It will also make it much easier to do cursed/blessed things with |
Just a quick update, although we think this is generally a good idea, it may be tight to get in before feature freeze (9 days from now). |
Just a note that even though we generally think this is a nice idea, we won't be able to get this into Garden before feature freeze. The change can be considered for Gazebo H+, but then we'll have to deal with the migration from |
Currently Gazebo's ecosystem saves everything to:
/home/username/.ignition
It's quite common to use
/home/username/.config/project_name
(or.local
) instead to avoid cluttering the home folder.Given that Gazebo, formerly Ignition, is undergoing a name change (from Ignition to Gazebo) we may take the opportunity to change location as well.
Desired behavior
Logs & Config files should be saved in
~/.config/gz
The text was updated successfully, but these errors were encountered: