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

Found XDG-Music (uh no you didn't) #1240

Open
nPHYN1T3 opened this issue Sep 20, 2024 · 5 comments · May be fixed by #1302
Open

Found XDG-Music (uh no you didn't) #1240

nPHYN1T3 opened this issue Sep 20, 2024 · 5 comments · May be fixed by #1302

Comments

@nPHYN1T3
Copy link

nPHYN1T3 commented Sep 20, 2024

Sorry for the cheeky title but I was looking for a new player since I've never really been happy with the others I've used and I'd never seen this before. So I installed, added my music directory...and waited...and waited...and waited. It's been well over an hour and looking at the track count something is extremely wrong. So I killed it and started digging into what the hell is going on.

Running from a terminal it seems to be ignoring my Music directory and spits out XDG-Downloads and XDG-Music which are both wrong and are pointing to my whole home folder...which has over 20 years of DAW/Studio files on it.

So it's not only ignoring the user selected / defined Music folder but it's also got the XDG_DOWNLOAD_DIR and XDG_MUSIC_DIR environment variables wrong.

Build was 7.8.3-1

@Taiko2k
Copy link
Owner

Taiko2k commented Sep 21, 2024

Yep there's an issue in Tauon that it doesn't read the environment variable overrides for these. Ive committed a fix for this now.

Tauon does already read the settings from ~/.config/user-dirs.dirs. Could you check what those are set to on your system?

@nPHYN1T3
Copy link
Author

nPHYN1T3 commented Sep 21, 2024

user-dirs.dirs is in fact wrong. I'm fairly sure the user-dirs.dirs file is ancient and has never been updated/configured correctly.

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"

However this is my environment

export XDG_STATE_HOME=$HOME/.local/state
export XDG_DATA_HOME=$HOME/.local/share
export XDG_CACHE_HOME=$HOME/.cache
export XDG_DATA_DIRS=/usr/local/share:/usr/share
export XDG_CONFIG_HOME=$HOME/.config
export XDG_CONFIG_DIRS=/etc/xdg/autostart
export XDG_DESKTOP_DIR="$HOME/Desktop"
export XDG_DOCUMENTS_DIR="$HOME/Documents"
export XDG_DOWNLOAD_DIR="$HOME/Downloads"
export XDG_MUSIC_DIR="$HOME/Music"
export XDG_PICTURES_DIR="$HOME/Pictures"
export XDG_PUBLICSHARE_DIR="$HOME/Public"
export XDG_TEMPLATES_DIR="$HOME/Templates"
export XDG_VIDEOS_DIR="$HOME/Videos"

@Taiko2k
Copy link
Owner

Taiko2k commented Sep 21, 2024

This article mentions how those are set https://wiki.archlinux.org/title/XDG_user_directories, but yeah next release of Tauon it should read these from the environment variables as first priority.

@nPHYN1T3
Copy link
Author

nPHYN1T3 commented Sep 21, 2024

Yeah there is no xdg-user-dirs update service on my machine. Looks like the only bits of that installed are because of Steam dependencies.

As a laugh xdg-user-dirs-update --force
No default user directories

@C0rn3j
Copy link
Contributor

C0rn3j commented Nov 18, 2024

@Taiko2k If you happen to know from the top of your head what's left to do here, could you describe it?

If not, don't bother, I'll have to go through the code and docs myself anyway.

I'll likely implement this in the next couple of days, as I cornered myself in my devel branch and need working XDG_DATA_HOME at minimum to proceed.

Just dropping this here so I don't have to look it up again:
https://wiki.archlinux.org/title/XDG_Base_Directory#User_directories
https://specifications.freedesktop.org/basedir-spec/latest/

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

Successfully merging a pull request may close this issue.

3 participants