Bug 459157 - Open in a File Manager
Summary: Open in a File Manager
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-MainView (show other bugs)
Version: 7.4.0
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-15 13:01 UTC by maison
Modified: 2023-04-19 20:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maison 2022-09-15 13:01:22 UTC
SUMMARY

STEPS TO REPRODUCE
0. You may have a different default file manager than Windows File Explorer. In my case it’s Directory Opus. I only use the latter because it’s the most feature‐rich one (far from the stock one). Other people use Total commander, Xplorer², Q-Dir, Files…
1. In digikam, right click on a photograph and select “Open in a File Manager”.

OBSERVED RESULT
Although many other software open the default explorer (whatever it is) pointing to the file, digikam assumes it has to be Windows File Explorer and nothing else.

EXPECTED RESULT
It should open the default file manager that you have and point to the file.
In my case it should have opened Directory Opus.

SOFTWARE/OS VERSIONS
Windows: 7 Home

ADDITIONAL INFORMATION
Comment 1 maison 2022-10-31 07:31:58 UTC
Any news?
Comment 2 Maik Qualmann 2022-10-31 08:38:44 UTC
We currently only support Explorer here, as it offers the option of selecting the files using the /select option. We are currently not testing other possible file managers. To choose a default file manager we would probably have to call native Windows code. We can test how the Qt function QDesktopServices::openUrl() behaves in the presence of Directory Opus.

Maik
Comment 3 Maik Qualmann 2022-10-31 08:41:42 UTC
Git commit 49a6a6f9b57dc4fb9cf592b407625f2ffcad274f by Maik Qualmann.
Committed on 31/10/2022 at 08:41.
Pushed by mqualmann into branch 'master'.

try QDesktopServices::openUrl() for open in file manager

M  +2    -2    core/libs/threadimageio/engine/dfileoperations.cpp

https://invent.kde.org/graphics/digikam/commit/49a6a6f9b57dc4fb9cf592b407625f2ffcad274f
Comment 4 maison 2022-10-31 08:45:25 UTC
Thanks Maik.
Let me know if I can help with the test of other file managers.
At the bare minimum, the right click menu should be renamed Open in Windows File Explorer (for the Windows version of course), to avoid confusion.
Comment 5 Maik Qualmann 2022-10-31 12:54:10 UTC
Git commit 6003c3fc174c852ccfb06d19ad3472ff529e387b by Maik Qualmann.
Committed on 31/10/2022 at 12:53.
Pushed by mqualmann into branch 'master'.

add function to find executable via Windows registry

M  +2    -16   core/dplugins/rawimport/darktable/rawimportdarktableplugin.cpp
M  +2    -16   core/dplugins/rawimport/rawtherapee/rawimportrawtherapeeplugin.cpp
M  +28   -1    core/libs/threadimageio/engine/dfileoperations.cpp
M  +7    -0    core/libs/threadimageio/engine/dfileoperations.h

https://invent.kde.org/graphics/digikam/commit/6003c3fc174c852ccfb06d19ad3472ff529e387b
Comment 6 Maik Qualmann 2022-10-31 13:16:29 UTC
Git commit d1bcb88a593cb3c6e0fa199100a158414e6ef0c6 by Maik Qualmann.
Committed on 31/10/2022 at 13:15.
Pushed by mqualmann into branch 'master'.

search for Dopus and try using it as a file manager

M  +20   -0    core/libs/threadimageio/engine/dfileoperations.cpp

https://invent.kde.org/graphics/digikam/commit/d1bcb88a593cb3c6e0fa199100a158414e6ef0c6
Comment 7 Maik Qualmann 2022-11-01 19:26:40 UTC
If DOpus is installed, it will be used instead of Explorer. The change will be available in digiKam-8.0.0.

Maik
Comment 8 maison 2022-11-01 20:48:34 UTC
Good news, thanks Maik!
I hope it’s more general so that it’s applicable to whatever file manager the user has.
Comment 9 Maik Qualmann 2022-11-01 21:14:08 UTC
No, this is only for DOpus. I don't even see the option to configure a "standard" file manager in the Windows standard app settings.

Maik
Comment 10 maison 2023-04-19 20:46:33 UTC
I can confirm that I tested dK 8.0.0 with Directory Opus and now it works.
Comment 11 maison 2023-04-19 20:47:03 UTC
Thank you Maik for providing a good solution.