<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hmm, I had never thought of this until I read this thread, but would
assume it would work:<br>
Can two users (e.g. userA and userB) be simultaneously running their
own, unique, instances of digikam?<br>
<br>
On 06/05/2012 06:29 PM, Jean-François Rabasse wrote:
<blockquote
cite="mid:alpine.LNX.2.00.1206060000420.12125@azrael.victoria.net"
type="cite">
<br>
On Tue, 5 Jun 2012, John Stumbles wrote:
<br>
<br>
<blockquote type="cite">Is it possible to run more than one
instance of digikam at the same time on a machine, operating on
different album trees and with different databases?
<br>
...
<br>
I can't see, in digikam's help manual, any way to invoke it with
a command line parameter to specify where to find its config
files or anything like that so I guess the answer is probably
that it is not possible, but I thought I'd ask anyway!
<br>
</blockquote>
<br>
Hello John,
<br>
<br>
It's possible if you're not reluctant to a bit of shell scripting.
<br>
(Or copy/paste my example below.)
<br>
I do the same thing and have two « DK environments », with
different DB
<br>
and folders trees.
<br>
<br>
DK can be run with a command line option specifying the directory
which hosts the database. But DK also uses a configuration file
and this one is
<br>
unique, so tricking this requires some preconfiguration.
<br>
<br>
1. I have my standard (main) DK configuration set.
<br>
<br>
2. I wrote a shell script to run my auxiliary DK configuration
<br>
(It's named dkaux and is somewhere in my PATH, e.g. $HOME/bin)
<br>
<br>
This script does the following :
<br>
--
<br>
#!/bin/bash
<br>
#
<br>
<br>
# Define aux base directory
<br>
DBASE=/somewhere/on/disk
<br>
<br>
# Save current RC configuration file
<br>
DCONF=${HOME}/.kde4/share/config/digikamrc
<br>
test -f ${DCONF} && mv ${DCONF} ${DCONF}.bak
<br>
<br>
# Install aux RC file if exists
<br>
test -f ${DCONF}.aux && mv ${DCONF}.aux ${DCONF}
<br>
<br>
# Start DK on aux directory (and wait, no trailing &)
<br>
digikam --database-directory ${DBASE} 2> /dev/null
<br>
<br>
# When done, restore RC configuration to standard
<br>
mv ${DCONF} ${DCONF}.aux
<br>
test -f ${DCONF}.bak && mv ${DCONF}.bak ${DCONF}
<br>
<br>
# That's all !
<br>
--
<br>
<br>
Well, it works well (at least for me:-), and it's possible to
extend the
<br>
idea and write 2, 3 or more starting scripts, dkaux1, dkaux2,
etc., with
<br>
different base directories and RC files.
<br>
<br>
The major problem is that you can't start at the same time two DK
instances,
<br>
and get two DK main windows, the main tree and the aux tree.
<br>
No magic, as DK uses a single fixed RC configuration file the
above can't
<br>
be reentrant.
<br>
<br>
Hope this could help,
<br>
Jean-François
<br>
<br>
<br>
PS: wish list: a great idea would be that future versions of DK
could also
<br>
accept the RC file on command line. That would allow starting
with:
<br>
digikam --database-directory /... --configuration-file
/....digikamrc
<br>
and managing different systems with shell aliases.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Digikam-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Digikam-users@kde.org">Digikam-users@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/digikam-users">https://mail.kde.org/mailman/listinfo/digikam-users</a>
</pre>
</blockquote>
</body>
</html>