Taiko2k / Tauon

The music player of today! :city_sunrise:
https://tauonmusicbox.rocks
GNU General Public License v3.0
1.79k stars 69 forks source link

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

Open nPHYN1T3 opened 1 month ago

nPHYN1T3 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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