[digiKam-users] Second copy of Digikam on Windows 7 PC possible?

Gilles Caulier caulier.gilles at gmail.com
Wed Apr 13 04:29:47 BST 2022


Hi,

You don't need to install 2 versions of digiKam binary at different places.

You will run the same binary but with 2 different config files passed at
startup. Use the right option from digikam.exe command line for that.
Create a desktop icon with right properties to point of digikam.exe and use
the right CLI options.

At end you must to have 2 digiKam desktop icons pointing on 2 different
config files

Best

Gilles Caulier

Le mer. 13 avr. 2022 à 01:09, Shel Ritter <shelritterbmw at yahoo.com> a
écrit :

> Thanks again to Gilles for pointing me to the correct DigiKam config file,
> digikamrc in hopes to set up a batch file for switching between to separate
> instances of DigiKam in Windows. But I'm still stuck at trying to figure
> out how to create that 2nd DigiKam installation in Windows to enable
> switching between the two. I could rind the installer again and select a
> different folder for the installation, but I'm afraid in the process
> Windows will overwrite crucial files critical to the 1st installation.
> Thanks for any thoughts on this.
> Shel
>
> On 4/8/2022 12:33 AM, Frédéric Da Vitoria wrote:
>
> Hello,
>
> Sorry to interfere here, but I am new to digiKam and I'd like to
> understand. Unfortunately, the digiKam documentation does not seem to
> mention command line options.
>
> So Gilles, are you saying that Shel should start digiKam with something
> like
>
> digikam.exe --config C:\Users\<user>\Documents\new_digiKam_config.cfg --database-directory
> C:\Users\<user>\Documents\new_digiKam_db.sqlite
>
> and that digiKam will create a new config file and a new database ?
>
> Other question: did starting digiKam as Shel did break anything ?
>
> Le 08/04/2022 à 08:57, Gilles Caulier a écrit :
>
>
> Not at all. Yolov config file is for face recognition…
>
> The digiKam config file is named digikamrc
>
> Gilles Caulier
> Le ven. 8 avr. 2022 à 08:41, Shel Ritter <shelritterbmw at yahoo.com> a
> écrit :
>
>> Thanks for the input Gilles. Looking into the \AppData configuration
>> folder, it seemed like the config file would have been: yolov3-face.cfg
>>
>>  Volume in drive C:
>>
>>  Directory of C:\Users\<user>\AppData\Roaming\digikam\facesengine
>>
>> 10:34 PM    <DIR>          .
>> 10:34 PM    <DIR>          ..
>> 08:16 PM            28,092 deploy.prototxt
>> 10:34 PM                 0 dir.txt
>> 08:16 PM        31,510,785 openface_nn4.small2.v1.t7
>> 08:16 PM         5,351,047 res10_300x300_ssd_iter_140000_fp16.caffemodel
>> 08:16 PM        67,740,572 shapepredictor.dat
>> 08:16 PM             8,334 yolov3-face.cfg
>> 08:26 PM       246,305,388 yolov3-wider_16000.weights
>>    7 File(s)    350,944,218 bytes
>>
>> So I ran this, expecting to see my current installation boot:
>>
>> digikam.exe --config
>> C:\Users\<user>\AppData\Roaming\digikam\facesengine\yolov3-face.cfg
>>
>> Instead DigiKam opened as if it was opening for the 1st time. It just
>> wasn't recognizing yolov3-face.cfg as a valid config file, and opened as a
>> fresh installation no matter what file I pointed it to. That initial window
>> that pops up refers to, "The new location for configuration files is
>> ~/Local Settings/ ~(old AppData/Local/). But the only Digikam files there
>> are 2 simple text files in the root AppData/Local/ folder,
>> digikam_systemrc 45 KB and digikamrc 88KB that the --config command ignores.
>>
>> I can't see any other locations where a valid config file might be. And
>> if the --help output for --database-directory <dir> is referring to a
>> folder that should literally be named dir somewhere, I couldn't find it.
>>
>> Admittedly I'm not great at the technical end of things. 😉
>>
>>
>> On 4/7/2022 10:07 PM, Gilles Caulier wrote:
>>
>> Hi,
>>
>> the digiKam binary has few option from command line to switch to a
>> specific configuration file. Under Linux it's easy to do :
>>
>> [gilles at localhost 8.x]$ digikam --help
>> Usage: digikam [options]
>> Professional Photo Management with the Power of Open Source - A KDE
>> Family Project
>>
>> Options:
>>  -h, --help                  Displays help on commandline options.
>>  --help-all                  Displays help including Qt specific options.
>>  -v, --version               Displays version information.
>>  --author                    Show author information.
>>  --license                   Show license information.
>>  --desktopfile <file name>   The base file name of the desktop entry for
>> this
>>                              application.
>>  --download-from <path>      Open camera dialog at "path"
>>  --download-from-udi <udi>   Open camera dialog for the device with Solid
>> UDI
>>                              "udi"
>>  --detect-camera             Automatically detect and open a connected
>> gphoto2
>>                              camera
>>  --database-directory <dir>  Start digikam with the SQLite database file
>> found
>>                              in the directory "dir"
>>  --config <config>           Start digikam with the configuration file
>>                              "config"
>> [gilles at localhost 8.x]$
>>
>> The option "--config <config>" is the right one for your use case. Look
>> also "--database-directory <dir>".
>>
>> These options are also available under Windows of course. Just call
>> digikam.exe from a simple Windows batch script must do the stuff.
>>
>> Best
>>
>> Gilles Caulier
>>
>> Le ven. 8 avr. 2022 à 05:18, Shel Ritter <shelritterbmw at yahoo.com> a
>> écrit :
>>
>>> I've had a copy of Digikam installed and working well on my Windows 7 PC
>>> for some time now. Recently I find myself wanting a separate copy of
>>> Digikam to incorporate an completely different library of photos. Is that
>>> possible?
>>>
>>> I was wondering if that mcould be done by making a copy of the
>>> \<user>\AppData\Roaming\digikam folder, and uninstalling the program,
>>> deleting (or just moving) the original data folder, reinstalling it, and
>>> importing a different folder & sub-folders from a different file library.
>>> Then just switch the 2 \AppData\ folders when I want to switch between
>>> libraries. I'm guessing things probably aren't that simple. Is the any
>>> chance there's a more sophisticated method if possible at all?
>>>
>>> I'm also wondering if there's any way to have DigiKam use the existing
>>> files in the new library instead of copying them all to a separate
>>> location. My libraries are pretty large.
>>>
>>> Thanks for any feedback folks.
>>> Shel
>>>
>>
> --
> Frédéric Da Vitoria
>
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon> Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link>
> <#m_-2790038120810714514_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20220413/6ca3df4a/attachment.htm>


More information about the Digikam-users mailing list