[prev in list] [next in list] [prev in thread] [next in thread]
List: amarok-devel
Subject: Re: make Amarok XDG user dir spec compatible
From: Harald Sitter <harald () getamarok ! com>
Date: 2007-11-01 15:32:39
Message-ID: 200711011632.41670.harald () getamarok ! com
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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@getamarok.com
amarok.kde.org Good news everyone! Jabber: apachelogger@kdetalk.net
["signature.asc" (application/pgp-signature)]
_______________________________________________
Amarok-devel mailing list
Amarok-devel@kde.org
https://mail.kde.org/mailman/listinfo/amarok-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic