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

[FR] add XDG support for macOS and Linux #3352

Open
andrewcrook opened this issue Nov 5, 2023 · 1 comment
Open

[FR] add XDG support for macOS and Linux #3352

andrewcrook opened this issue Nov 5, 2023 · 1 comment

Comments

@andrewcrook
Copy link

It would be really nice to support XDG environment variables in Sonic Pi

something like

.sonic-pi/log - > $XDG_STATE_HOME/sonic-pi/log
.sonic-pi/config - > $XDG_CONFIG_HOME/sonic-pi/config
.sonic-pi/store -> $XDG_DATA_HOME/sonic-pi/store
.sonic-pi/.uuid -> config or state?

This would allow users to clean there home directories by relocating the data in .sonic-pi

There are some custom user directories as well

$XDG_DESKTOP_DIR="$HOME/Desktop"
$XDG_DOCUMENTS_DIR="$HOME/Documents"
$XDG_DOWNLOAD_DIR="$HOME/Downloads"
$XDG_MUSIC_DIR="$HOME/Music"
$XDG_PICTURES_DIR="$HOME/Pictures"
$XDG_PUBLICSHARE_DIR="$HOME/Public"
$XDG_TEMPLATES_DIR="$HOME/Templates"
$XDG_VIDEOS_DIR="$HOME/Videos"

I think $XDG_MUSIC_DIR="$HOME/Music” could be used for sample sources and composed music
and possibly $XDG_DOCUMENTS_DIR/sonic-pi to save projects

https://wiki.archlinux.org/title/XDG_Base_Directory
https://wiki.archlinux.org/title/XDG_user_directories

@andrewcrook
Copy link
Author

This has also been mentioned in #1864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant