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

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

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

AndriusWild
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
Reply | Threaded
Open this post in threaded view
|

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

AndriusWild
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


Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
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  <[hidden email]>:

> 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
>
>
Reply | Threaded
Open this post in threaded view
|

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

AndriusWild
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  <[hidden email]>:
> > 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


Reply | Threaded
Open this post in threaded view
|

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

AndriusWild
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  <[hidden email]>:
> > > 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


Reply | Threaded
Open this post in threaded view
|

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

Maik Qualmann
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 [hidden email] 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  <[hidden email]>:
> > > > 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
Reply | Threaded
Open this post in threaded view
|

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

AndriusWild
In reply to this post by AndriusWild

Sorry I made a mistake in the test.sh. Here is the correct code:

 

----beginning of the code---

#!/usr/bin/env bash

for FILE in "$@"; do

echo "File is "$FILE" "

done

----end of the code----

 

 

On Wednesday, May 17, 2017 12:52:01 PM MDT you 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 <[hidden email]>:

> > > > 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

 

 

Reply | Threaded
Open this post in threaded view
|

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

Maik Qualmann
Problem is now fixed for digiKam-5.6.0, the script is running. The quotes in
the command line were the problem. Another thing is, we do not support the
function open in the terminal.

Maik

On Mittwoch, 17. Mai 2017 20:54:07 CEST [hidden email] wrote:

> Sorry I made a mistake in the test.sh. Here is the correct code:
>
> ----beginning of the code---
> #!/usr/bin/env bash
> for FILE in "$@"; do
> echo "File is "$FILE" "
> done
> ----end of the code----
>
> On Wednesday, May 17, 2017 12:52:01 PM MDT you 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  <[hidden email]>:
> > > > > 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
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
Maik,

So the file #379956 is fixed ?

Gilles

2017-05-17 21:37 GMT+02:00 Maik Qualmann <[hidden email]>:

> Problem is now fixed for digiKam-5.6.0, the script is running. The quotes in
> the command line were the problem. Another thing is, we do not support the
> function open in the terminal.
>
> Maik
>
> On Mittwoch, 17. Mai 2017 20:54:07 CEST [hidden email] wrote:
>> Sorry I made a mistake in the test.sh. Here is the correct code:
>>
>> ----beginning of the code---
>> #!/usr/bin/env bash
>> for FILE in "$@"; do
>> echo "File is "$FILE" "
>> done
>> ----end of the code----
>>
>> On Wednesday, May 17, 2017 12:52:01 PM MDT you 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  <[hidden email]>:
>> > > > > 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
Reply | Threaded
Open this post in threaded view
|

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

Maik Qualmann
Yes, is fixed, script is now running. We not support the function: open in the
terminal from the *.desktop file.

Maik

On Mittwoch, 17. Mai 2017 22:43:02 CEST Gilles Caulier wrote:

> Maik,
>
> So the file #379956 is fixed ?
>
> Gilles
>
> 2017-05-17 21:37 GMT+02:00 Maik Qualmann <[hidden email]>:
> > Problem is now fixed for digiKam-5.6.0, the script is running. The quotes
> > in the command line were the problem. Another thing is, we do not support
> > the function open in the terminal.
> >
> > Maik
> >
> > On Mittwoch, 17. Mai 2017 20:54:07 CEST [hidden email] wrote:
> >> Sorry I made a mistake in the test.sh. Here is the correct code:
> >>
> >> ----beginning of the code---
> >> #!/usr/bin/env bash
> >> for FILE in "$@"; do
> >> echo "File is "$FILE" "
> >> done
> >> ----end of the code----
> >>
> >> On Wednesday, May 17, 2017 12:52:01 PM MDT you 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  <[hidden email]>:
> >> > > > > 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
> >
> > --

Reply | Threaded
Open this post in threaded view
|

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

AndriusWild
How can I open with shell script if "open in terminal" is not supported?
For some scripts I need them just to run, for others I need to have the terminal window open after finishing to be able to review errors and warnings

Best regards,

On Wed, May 17, 2017 at 2:55 PM, Maik Qualmann <[hidden email]> wrote:
Yes, is fixed, script is now running. We not support the function: open in the
terminal from the *.desktop file.

Maik

On Mittwoch, 17. Mai 2017 22:43:02 CEST Gilles Caulier wrote:
> Maik,
>
> So the file #379956 is fixed ?
>
> Gilles
>
> 2017-05-17 21:37 GMT+02:00 Maik Qualmann <[hidden email]>:
> > Problem is now fixed for digiKam-5.6.0, the script is running. The quotes
> > in the command line were the problem. Another thing is, we do not support
> > the function open in the terminal.
> >
> > Maik
> >
> > On Mittwoch, 17. Mai 2017 20:54:07 CEST [hidden email] wrote:
> >> Sorry I made a mistake in the test.sh. Here is the correct code:
> >>
> >> ----beginning of the code---
> >> #!/usr/bin/env bash
> >> for FILE in "$@"; do
> >> echo "File is "$FILE" "
> >> done
> >> ----end of the code----
> >>
> >> On Wednesday, May 17, 2017 12:52:01 PM MDT you 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  <[hidden email]>:
> >> > > > > 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
> >
> > --