Open with -> External script isn't working from digiKam

Maik Qualmann metzpinguin at gmail.com
Wed May 17 19:53:50 BST 2017


Because of portability, we do not use the  function from KF5::KIO. We use its 
own function to start programs, %F is supported. I'll check it again.

Maik

On Mittwoch, 17. Mai 2017 20:52:01 CEST aegoreev at gmail.com wrote:
> To reproduce the issue you can creat a test script test.sh and make it
> executable:
> ----beginning of the code---
> #!/usr/bin/env bash
> for file in "$@"; do
> echo "File is "$@" "
> done
> ----end of the code----
> 
> then create test.desktop file, copy it to $HOME/.local/share/applications/
> and make executable.
> 
> ---beginning of the code----
> [Desktop Entry]
> Categories=AudioVideo;Video;
> Comment=Test
> Exec="/PATH/TO/test.sh" %F
> GenericName=Test
> Icon=
> MimeType=video/x-msvideo;video/quicktime;video/mpeg;video/mp4;
> Name=Test
> NoDisplay=false
> Path=
> StartupNotify=true
> Terminal=true
> TerminalOptions=\s--noclose
> Type=Application
> Version=1.0
> X-DBUS-ServiceName=
> X-DBUS-StartupType=none
> X-KDE-SubstituteUID=false
> X-KDE-Username=
> ----end of the code----
> 
> Then open Dolphin - select few video files - open with - Test
> which will work.
> 
> Then open digiKam - select few video files - open with - Test
> it won't work.
> 
> On Wednesday, May 17, 2017 12:32:34 PM MDT you wrote:
> > Gilles,
> > No I am not using the appimage.
> > In fact, Open With - "VLC media player" works.
> > Only shell scipts seem to have the issue.
> > 
> > On Wednesday, May 17, 2017 12:20:25 PM MDT Gilles Caulier wrote:
> > > Did you use AppImage ? If yes, it's know that KService and KIO are
> > > definitively complex to run due to plenty runtime dependencies...
> > > 
> > > The open With use these frameworks in background, and personalty the
> > > design of these comopents is bad and not adapted to bundle
> > > application. This include also MAcOS and Windows (OpenWith support is
> > > disabled while compilation for these OS.)
> > > 
> > > Gilles Caulier
> > > 
> > > 2017-05-17 20:07 GMT+02:00  <aegoreev at gmail.com>:
> > > > I execute "/path/to/script.sh" %F when open with scipt.
> > > > Maybe digikam does not pass selected files as %F ?
> > > > However if I drag selected files from digikam and drop them in
> > > > terminal
> > > > as
> > > > "paste location" I do get /PATH/TO/FILE1 /PATH/TO/FILE2 etc.
> > > > ...
> > > > 
> > > > On Wednesday, May 17, 2017 11:55:22 AM MDT you wrote:
> > > >> Hello,
> > > >> I have added few bash scripts to the system "Open with" menu.
> > > >> Normally I select files - right click - "open with" - select the
> > > >> script.
> > > >> Everything works just fine from my file manager (dolphin) but it is
> > > >> not
> > > >> working from digikam.
> > > >> Any ideas on why is this happening?
> > > >> 
> > > >> Thanks,
> > > >> AG


-- 
Gruß Maik



More information about the Digikam-users mailing list