make Amarok XDG user dir spec compatible
Harald Sitter
harald at getamarok.com
Thu Nov 1 16:32:39 CET 2007
Am Mittwoch 31 Oktober 2007 22:25:33 schrieb Jeff Mitchell:
> > Um, i'm pretty sure that this is already possible by simply adding
> > $HOME/Music to the system-wide amarokrc. I think Amarok will even convert
> > it to the Dynamic Collection collection folder format automatically.
> > iirc, kubuntu already does this.
>
> Yeah, you may want to ask Jonathan Ridell if this is already the case.
> Cause then we could just snark the changes from him :-)
The major problem is that the xdg-user-dirs are mostly localized (i.e. with a
german setup $HOME/Music becomes $HOME/Musik). The actual path is written
into
$(XDG_CONFIG_HOME)/user-dirs.dirs
default:
~/.config/user-dirs.dirs
where one for example finds:
XDG_MUSIC_DIR="$HOME/Musik"
So Amarok has to get the XDG_MUSIC_DIR value at every startup, since of course
this can change (i.e. the user changes his system language from german to
english).
Amarok starts -> reads the value -> scans collection -> user can deactivate
the directory -> which drops the whole "read the value" thing.
--
Harald Sitter
Amarok team Rokymotion division Mail: harald at getamarok.com
amarok.kde.org Good news everyone! Jabber: apachelogger at kdetalk.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/amarok-devel/attachments/20071101/07b6ec49/attachment.pgp
More information about the Amarok-devel
mailing list