Portable database

Andreas Schäfer gentryx at gmx.de
Fri Mar 14 08:28:32 UTC 2008


On 09:06 Fri 14 Mar     , Sven Jacobs wrote:
> My suggestion is that Amarok should also be capable of storing the 
> database in the root folder of the music collection on the portable 
> media. Let's say the collection is stored in /media/myusbdrive/music 
> then the database could be placed in /media/myusbdrive/music/.amarok 
> when in "portable mode". You still have to configure the locations of 
> your music within Amarok but once it finds a portable database within 
> one of these locations, it's using it for this directory and all 
> subdirectories.

I got a similar problem with other programs: I use kopete, korganizer,
mutt etc. on several machines and sync their data using a central
subversion repository. None of those programs offers native support to
place their configuration files on arbitrary locations (e.g. in my
local SVN checkout).

My solution is to simply place a symlink from their config directories
to my SVN checkout. This might work for your scenario, too. E.g.:

ln -s /mnt/music_collection/amarok_config/amarokrc ~/.kde/config/
ln -s /mnt/music_collection/amarok_config/amarokcollectionscannerrc ~/.kde/config/
ln -s /mnt/music_collection/amarok_config/amarok ~/.kde/apps/

(assuming that your collection is mounted on /mnt/music_collection/
and you've moved your config to /mnt/music_collection/amarok_config/)

Hope this helps :-)
-Andreas


-- 
============================================
Andreas Schäfer
Cluster and Metacomputing Working Group
Friedrich-Schiller-Universität Jena, Germany
PGP/GPG key via keyserver
I'm a bright... http://www.the-brights.net
============================================

(\___/)
(+'.'+)
(")_(")
This is Bunny. Copy and paste Bunny into your 
signature to help him gain world domination!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/amarok/attachments/20080314/5d587373/attachment.sig>


More information about the Amarok mailing list