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 · 4 comments
Open

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

nPHYN1T3 opened this issue Sep 20, 2024 · 4 comments

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

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

2 participants