Follow XDG Base Directory specification #1967
Labels
conclusion: duplicate
Has already been submitted
os: linux
Specific to Linux operating system
topic: CLI
Related to Arduino CLI
topic: theia
Related to the Theia IDE framework
type: enhancement
Proposed improvement
Describe the request
There's a specification in Linux where directories and files should go for users.
https://wiki.archlinux.org/title/XDG_Base_Directory
It would be ideal if the Arduino IDE would follow it so that it reduces clutter in the
$HOME
directory, i.e.:$XDG_CONFIG_HOME/arduino15
instead of~/.arduino15
$XDG_CONFIG_HOME/arduinoIDE
instead of~/.arduinoIDE
I understand that it may take a lot to implement properly, or add a config in the IDE itself, but could we not at least get an environment variable(s), which if set it will load the configs from that path?
This would solve the issue with migration, as it seems like the main justification arduino ide developers use to not implement this. And we would at least not have those directories in the home directory.
Aside from reducing the clutter in the home directory, there are many reasons for following the XDG specification, one of which is be able to include only specific directories to backup.
Right now we have to manually exclude these directories, which at some point you understand its too much and decide, f* it - I'll back up everything.
Describe the current behavior
Home dir is a complete mess at this point.
Arduino IDE version
2.0.4
Operating system
Linux
Operating system version
Ubuntu 22.04
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: