Bug 322117

Summary: Open directory in File Manager and Open directory In Terminal not working under Windows and OSX
Product: [Applications] digikam Reporter: Ricardo <ricspam>
Component: Portability-InterroperabilityAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: caulier.gilles, gsking1, laurakittyinka
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.0.0
Sentry Crash Report:

Description Ricardo 2013-07-08 14:31:34 UTC
When "My Albums" are displayed on the left sidebar, I can right-click an album name and see the options "Open in File Manager" and "Open in Terminal". Unfortunately, none of them are working on my system (Windows 7 64-bit).

When I select "Open in File Manager" the system opens a dialog to choose the program to open the folder. Even if I choose a program (e.g., Windows Explorer), my choice is not saved, so I have to select the program every time I select this option.

When I select "Open in Terminal", nothing seems to happen.

A possible solution to this would be to allow the user to choose the program(s) for each option, in the digiKam preferences. For instance, I could choose  [C:\Windows\explorer.exe] as file manager, and [C:\Windows\SysWOW64\cmd.exe] as the terminal. Parameter expansion would be necessary to allow passing extra parameters to the programs - for example, the terminal program parameter could be something like ["C:\Windows\SysWOW64\cmd.exe" /k "cd %s"].

Reproducible: Always

Steps to Reproduce:
1. Right-click an album in digiKam
2. Select "Open in File Manager" or "Open in Terminal"

Actual Results:  
In "Open in File Manager", Windows always ask me to choose an application to open the folder.
In "Open in Terminal", nothing happens.

Expected Results:  
With In "Open in File Manager": see the album folder being open in Windows Explorer (the default file manager in Windows).
With "Open in Terminal": see a command prompt (the default terminal in Windows) open with the album folder as the current directory.

Windows 7 64-bit.
Comment 1 caulier.gilles 2014-08-31 22:29:26 UTC
Ricardo,

This file still valid using last digiKam 4.2.0 ?

Gilles Caulier
Comment 2 Ricardo 2014-09-03 08:05:53 UTC
I'm sorry, but I'm not using digiKam anymore...
Comment 3 caulier.gilles 2014-09-03 10:10:26 UTC
This entry is relevant of KDELibs dedicated to start relevant applications : KRun for filemanager and KToolInvocation::invokeTerminal() for the console.

Under Windows, M$ desktop file manager and M$ terminal must be used by default.

Under OSX, Apple Finder and Apple Console must be used by default.

Gilles Caulier
Comment 5 Geoff King 2015-07-04 16:44:04 UTC
hello.  I also have this issue of not being able to "Open in file manager" from within digikam.  A dialog box comes up asking me to select a kde application to use.  i don't have anything kde installed except for the digikam binary.  (i removed all macports kde and prior digikam stuff).

I also get this error when trying to "open in terminal" from  digikam.  
  Could not launch the terminal client:
  KDEInit could not launch '!/usr/bin/open'

I am using the binary  "digikam-4.11.0-Yosemite.pkg" from June 2015 .
Comment 6 Barbara Scheffner 2016-12-04 06:00:20 UTC
I can add that "Open in File Manager" also doesn't work in DK 5.4.0 under Kubuntu, neither from the Album menu nor from the context menu of an album. No dialog opens, just nothing happens.
Comment 7 Geoff King 2020-04-14 23:25:20 UTC
I think this bug can be marked as resolved.  I just tried using latest 7.0 beta versions on both Windows 10 and Mac Mojave and was able to use menus to "Open in File Manager".  Both worked.