[Digikam-devel] problems with digikam3.db into a nefs partition

Fabien fabien.ubuntu at gmail.com
Thu Mar 8 10:01:46 GMT 2007


Arnd Baecker wrote:
> On Thu, 8 Mar 2007, Fabien wrote:
> 
> [...]
>
>>I still think my proposal (adding -f cmdline option to specify the path
>>to digikam db) would be the right solution, not only to address this
>>problem but also about other possibilities it offers (read-only media,
>>etc...).
>>I would like to be able to propose a patch, but unfortunately I can't :(
>>It's a pity, because it doesn't sound very difficult to do (well, I
>>would know how to do that in some languages :) ). 
> 
> I know how you feel ;-)

:)

> Looking at
>   digikam/digikam/main.cpp
> it might be easily possible to add
> a command-line option to specify the "Album Path"
> (normally given in .kde/share/config/digikamrc)

Ok, good to know that !

> However, I would not know how to separate the
> location of the "Album Path"/digikam3.db and the
> "Album Path"/ImageFolders.
> This looks like a more invasive change ...


Well, I don't think so (I hope). Look here :
<http://bugs.kde.org/show_bug.cgi?id=137694#c5>

Only 3 files refer to this :
<<
digikam/albummanager.cpp:    QString dbPath = cleanPath + "/digikam3.db";
digikam/upgradedb_sqlite2tosqlite3.cpp:    QString newDB= libraryPath + 
"/digikam3.db";
kioslave/sqlitedb.cpp:    QString dbPath = directory + "/digikam3.db";
 >>

I already tried to hardcode another path and it worked perfectly...

--
Fabien




More information about the Digikam-devel mailing list