| Summary: | There appears to be no way of adding, deleting or editing items in the "Open with" context menu. | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Staffan <staffan> |
| Component: | Usability-OpenWith | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | wishlist | CC: | caulier.gilles, metzpinguin |
| Priority: | NOR | ||
| Version First Reported In: | 8.4.0 | ||
| Target Milestone: | --- | ||
| Platform: | Mint (Ubuntu based) | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 8.5.0 | |
| Sentry Crash Report: | |||
|
Description
Staffan
2024-11-10 12:18:04 UTC
On a Plasma desktop with native digiKam or macOS we use the "Open with..." menu on the desktop. There shouldn't be any problems here. On Windows Gnome/AppImage or Windows we use our own solution. On Linux we look for *.desktop files, if the programs found are compatible with the MIME type we are looking for, it is displayed. On Windows we have predefined *.desktop files from well-known programs, if they are present in the system, the entry is displayed. You can create your own *.desktop files in the user context for new programs. Maik Hi, The OpenWith context menu do not come from digiKam but from the Desktop settings, aka Gnome or Plasma under Linux. Gilles Caulier (In reply to Maik Qualmann from comment #1) > On a Plasma desktop with native digiKam or macOS we use the "Open with..." > menu on the desktop. There shouldn't be any problems here. > On Windows Gnome/AppImage or Windows we use our own solution. On Linux we > look for *.desktop files, if the programs found are compatible with the MIME > type we are looking for, it is displayed. > On Windows we have predefined *.desktop files from well-known programs, if > they are present in the system, the entry is displayed. > You can create your own *.desktop files in the user context for new programs. > > Maik OK, thanks for the clarification. Adding "MimeType=application/x-extension-CR3;" to one of the *.desktop files did indeed make the program show up in the OpenWith menu. It still doesn't open the image in the selected program, but I guess that's a different problem. Do you happen to know if there are any other lines that need to be present in the *.desktop file in order for digiKam to be able to pass the image file to the selected program? (The *.desktop file is functional in that it starts the right program from the desktop, but selecting it from within digiKam does nothing and nothing shows up in syslog.) To pass a path(s) or URL(s) add %f or %u to the program parameter if you want to start multiple instances of the program with each file individually. Add %F or %U if you want to pass a list of paths to the program. Maik (In reply to Maik Qualmann from comment #4) > To pass a path(s) or URL(s) add %f or %u to the program parameter if you > want to start multiple instances of the program with each file individually. > Add %F or %U if you want to pass a list of paths to the program. > > Maik Yes, that's what I thought too, but it doesn't seem to work in this case. Also, 'Open with RawTherapee' works perfectly without %F or %U in the RawTherapee.AppImage.desktop file. Anyway, I guess this isn't really about a possible bug in digiKam anymore, but thank you very much for your suggestions anyway! If no parameter is passed, %f is always assumed. Does your program start from the terminal with a file path? Or does it require a parameter? You can also pass that as an option. Even if your program only runs in a terminal, the *.desktop syntax knows a terminal option. Maik Actually, the program can be started from the command line BUT it complains that it "Could not open one or more images due to unsupported file types" (even though it can handle the image file if I load it using drag and drop once started). So the problem seems to be in how the program is called and the proper way to supply a file argument. I guess I'll experiment some more and perhaps even contact Topaz support if I can't figure it out. Thanks again. |