Bug 381510 - "open with" on multiple images only passes first image
Summary: "open with" on multiple images only passes first image
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-OpenWith (show other bugs)
Version: 5.7.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-22 02:39 UTC by Peter
Modified: 2022-01-31 07:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.7.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2017-06-22 02:39:33 UTC
Selecting multiple images and doing an "open with" only passes the first image to the external program.

I would expect it to either do all images as arguments for one run or one execution for each image.

This can be tested easily enough by making a shell script like these:

#!/bin/bash
zenity --info --text="$*"

or

#!/bin/bash
echo "$*" > /tmp/results.txt
Comment 1 Maik Qualmann 2017-06-22 03:43:17 UTC
Problem is not reproducible here. When I select multiple images and use open with Gwenview, for example, the selected images are opened. It depends on the command line parameter %f and %u for single file or %F and %U for multiple files. If no command line parameter specified, the open function in digiKam uses single file. This behavior would be changeable.

Maik
Comment 2 Peter 2017-06-22 05:29:52 UTC
(In reply to Maik Qualmann from comment #1)
> Problem is not reproducible here. When I select multiple images and use open
> with Gwenview, for example, the selected images are opened. It depends on
> the command line parameter %f and %u for single file or %F and %U for
> multiple files. If no command line parameter specified, the open function in
> digiKam uses single file. This behavior would be changeable.
> 
> Maik

You are correct, I wasn't using %F.  When no parameter worked I assumed that was the way to do it.

However, when using %F I would expect one execution with all images and with %f I would expect multiple executions with one image each.
Comment 3 Maik Qualmann 2017-06-22 16:44:01 UTC
Git commit a223a9c43bc80ec13cb92e0766e8ff0e5fcfd80d by Maik Qualmann.
Committed on 22/06/2017 at 16:41.
Pushed by mqualmann into branch 'master'.

add support to runFiles() for start multiple open file processes
FIXED-IN: 5.7.0

M  +2    -1    NEWS
M  +27   -3    libs/threadimageio/dfileoperations.cpp

https://commits.kde.org/digikam/a223a9c43bc80ec13cb92e0766e8ff0e5fcfd80d