Bug 467805 - Improvement proposal: image thumbnail: right clic open with in context menu
Summary: Improvement proposal: image thumbnail: right clic open with in context menu
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-OpenWith (show other bugs)
Version: 8.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: efficiency
Depends on:
Blocks:
 
Reported: 2023-03-26 08:27 UTC by laurent.cabot
Modified: 2024-03-05 20:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0


Attachments
"Open with external tool" FastStone screenshot (102.72 KB, image/jpeg)
2023-03-26 08:27 UTC, laurent.cabot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description laurent.cabot 2023-03-26 08:27:22 UTC
Created attachment 157584 [details]
"Open with external tool" FastStone screenshot

In fastStone viewer there is the very convenient feature:
In options, declare external tools that interact with FastStone.
In the main window, right clic on a thumbnail => open with => select the tool in the list.
Then, the tool is opened with the selected image.
Very usefull.

Best regards.
Comment 1 caulier.gilles 2023-03-26 08:38:11 UTC
Hi,

I already search on the web how to deal with the Microsoft API to get this list of installed application supporting a mime-type, and i just found the open-with dialog, not the code to embed the list of application in a context menu.

The Linux and MacOS implementations for the service menu is located here :

https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/threadimageio/engine/dservicemenu.h

A future Windows implementation must be hosted at the same place of course...

Best

Gilles Caulier
Comment 2 laurent.cabot 2023-03-26 08:44:45 UTC
Thanks for feedback.
FastStone does not deal with the "Microsoft API to get this list of installed application supporting a mime-type". It is relevant to the user to make the list (in options). Simple, basic, but it works.
Best regards,
#L.
Comment 3 caulier.gilles 2023-03-26 08:56:47 UTC
Really, how it take these type-mime information without to use the Windows API ???
Comment 4 Maik Qualmann 2023-03-26 09:11:52 UTC

*** This bug has been marked as a duplicate of bug 415845 ***
Comment 5 laurent.cabot 2023-03-26 14:07:32 UTC
(In reply to caulier.gilles from comment #3)
> Really, how it take these type-mime information without to use the Windows
> API ???

Manually ! So basic !
Comment 6 Maik Qualmann 2024-03-05 20:34:59 UTC
We started with digiKam-8.3.0 to create/support *.desktop files under Windows. This makes it possible to integrate programs into an "Open with..." menu. Various *.desktop files are already available as standard, such as Darktable, RawTherapee, Windows Media Player, Microsoft Paint, VLC Player, DxO PhotoLab 7, etc. If these programs are available, they will be displayed in the menu.
It is possible to create your own *.desktop files under "C:\Users\%USERNAME%\AppData\Local\applications".

A typical *.desktop file looks like this:

-------------------------------------------------------------------------------
[Desktop Entry]
Type=Application
Name=Gimp
Exec="%ProgramFiles%/GIMP 2/bin/gimp-2.10.exe" %f
Icon="%ProgramFiles%/GIMP 2/bin/gimp-2.10.exe"
MimeType=image/jpg;image/raw
-------------------------------------------------------------------------------

I'm closing this bug now.

Maik