https://bugs.kde.org/show_bug.cgi?id=365375

            Bug ID: 365375
           Summary: Open with... ignores parameters of Exec line in
                    Desktop Entry
           Product: digikam
           Version: 5.0.0
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Thumbnails
          Assignee: digikam-de...@kde.org
          Reporter: kni...@volny.cz

Hi,

it seems digiKam cannot run complete "Exec" keyword line from Linux Desktop
Entry [1] file anymore.

[1]
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

In particular, the example line could be:

Exec=/usr/bin/xterm -hold -e /usr/local/bin/myscript.sh %f

What digikam actually runs seems to be:

/usr/bin/xterm %f

This bug does not appear when the Exec is run from a file manager (Caja in MATE
desktop), only from within digiKam.

Reproducible: Always

Steps to Reproduce:
1. Create a simple Desktop file in $HOME/.local/share/applications:
[Desktop Entry]
Exec=/usr/bin/xterm -hold -e /usr/local/bin/myscript.sh %f
MimeType=image/jpeg;image/x-canon-cr2;image/x-canon-crw;image/x-panasonic-raw;image/x-panasonic-raw2;image/x-olympus-raw
;image/x-olympus-orf
Name=Do Something
Type=Application
Terminal=No
NoDisplay=Yes
Icon=camera-photo-symbolic

2. Create the script in /usr/local/bin/myscript.sh and make it executable
#!/bin/bash
echo $@
exit

3. Run digiKam, right-click on a JPEG file and choose Open with... / Do
Something


Actual Results:  
4. Nothing happens in GUI.

5. On CLI digiKam spits a message:
xterm: No absolute path found for shell: /path/to/your/albums/somephoto.jpg

Which means that xterm expects a path, not a file. This is the std error when
no options (-parameters) are given to xterm command.


Expected Results:  
6. To test that otherwise things work, run from CLI the contents of the Exec
line (with some path/to/image.jpg) or from your file manager (via right-click
Open with...). A new window with xterm opens and shows the full path to the
image name.

It used to work in the past... (Probably still with the old version of digiKam
4.x.x.)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to