SUMMARY When accessing a remote database from multiple installations of Digikam, each installation typically has a different mount path for network albums (for example, "M:\Photos" and "/mount/share/photos"). This is always the case when the installations are on different operating systems (such as Linux and windows). By editing the database table, digikam supports multiple mount paths by picking the first valid mount path in the list: "networkshareid:?mountpath=/media/share/Photos&mountpath=M:\Photos" But there is currently no way to add, remove, or view multiple mount paths in the GUI. EXPECTED BEHAVIOR Digikam should allow users to add, remove, or view multiple mount paths for a root album in the GUI settings.
This is already implemented in digiKam-8.0.0-Beta1. Maik
Take also a look to the online documentation (based on next 8.0.0 release): https://docs.digikam.org/en/setup_application/collections_settings.html#setup-root-album-folders Gilles Caulier
Hi Gilles, Maybe you should use an image that also has a network collection. Then you see the "+" icon to explain that further network root paths can be attached, e.g. for other operating systems. Maik
Git commit bb37444dcc0d0d50d8b2f926f9a102aa0f28d981 by Gilles Caulier. Committed on 24/01/2023 at 13:00. Pushed by cgilles into branch 'master'. update Collection Setup View with removable and network devices M +- -- setup_application/images/setup_collection_entries.webp https://invent.kde.org/documentation/digikam-doc/commit/bb37444dcc0d0d50d8b2f926f9a102aa0f28d981
Thank you everyone for your help. I saw an issue that fixed the backend part but not the GUI. Thanks for pointing it out and for being helpful rather than rude! I am new to submitting and searching for bugs using the KDE system.
@Gilles, Hmm, the network collection doesn't show the "+" icon, because only after accepting the settings and adding the base network collection is it possible to attach more. Can you maybe add an "empty" folder as a network collection (so you don't have to scan your NAS) and then take the screenshot again? Maik
Git commit 0fbda5b4ded498e57fb34cf027a49ac3b18d58b1 by Gilles Caulier. Committed on 25/01/2023 at 08:42. Pushed by cgilles into branch 'master'. update collections settings screenshot with Plus button avaialble for Network shares M +4 -2 setup_application/collections_settings.rst M +- -- setup_application/images/setup_collection_entries.webp https://invent.kde.org/documentation/digikam-doc/commit/0fbda5b4ded498e57fb34cf027a49ac3b18d58b1
Maik, What's the goal of this "+" button for network shares ? Typically, a collection == a path. Why this difference about network shares ? Gilles
Hum, i think i understand. As the path registration of a collection is stored in database, in case of database shared though a NAS for multiple client computer running digiKam, the path for the same network share can be different (eg. Linux and Windows). This allows to register 2 paths for the same collection in the database. If i'm right, how digiKam know which right path to use on client computer ? Just be testing the presence of this mount path on client computer ? Gilles
Correct, the corresponding paths are tested to see if they exist on the client computer. It is unlikely that "E:\NasFolder" exists on Linux or "/NasFolder" on Windows. By the way, the code for this has been in digiKam for a very long time. I think Marcel added it. Previously, users edited this directly in the DB. Now it is possible in the GUI. Maik
Great i will patch the doc accordingly. It's an important feature. Gilles
Maik, In the case of we host collections and database on a NAS, to share files between different digiKam client (eq. one Linux, one Windows, and one macOS), how much we deal with the multiple paths settings here. Does all digiKam client must have the same settings about paths to be homogeneous ? Gilles
I don't know if I understand it correctly. Let's start with the Linux user as an example. He adds the first entry to the network collection: /mnt/nas-Images With the "+" icon, the macOS user now adds its base path to the collection: /Volumes/data/NAS The Windows user: X:\NAS-digiKam Other Windows users would also be conceivable if the NAS has a different mount point or used by UNC path. It is important that all base paths then refer to the same collection. Maik
Git commit 8b6c5063020bde280ef09928a489ef314561656e by Gilles Caulier. Committed on 25/01/2023 at 14:36. Pushed by cgilles into branch 'master'. Add more details about network shared collection M +12 -2 setup_application/collections_settings.rst https://invent.kde.org/documentation/digikam-doc/commit/8b6c5063020bde280ef09928a489ef314561656e
Maik, Look the new chapter about the Network Shares Specificity. https://docs.digikam.org/en/setup_application/collections_settings.html#the-network-shares-specificity Gilles