Bug 474462 - qwenview called for images from different directories but with same name
Summary: qwenview called for images from different directories but with same name
Status: REPORTED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 21.12.3
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-12 21:09 UTC by jettsen.dallyn
Modified: 2023-09-12 21:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jettsen.dallyn 2023-09-12 21:09:42 UTC
SUMMARY
calling gwenview for multiple images of same name, but from different directories, results in gwenview showing only the last image of the provided list. 

STEPS TO REPRODUCE
positive attempt:
1. execute: gwenview dir_A/frontal_image_A.png dir_B/frontal_image_B.png dir_C/frontal_image_C.png 
2. result: gwenview opens it`s widget showing thumbnails of all three images 'frontal_image_A.png', 'frontal_image_B.png' and 'frontal_image_C.png'
3. ==> fine

problem attempt:
1. execute: gwenview dir_A/frontal_image.png dir_B/frontal_image.png dir_C/frontal_image.png 
2. result: gwenview opens it`s widget showing only one thumbnail for image 'frontal_image.png' from dir_C
3. ==> not what is expected

OBSERVED RESULT
only the last image of the provided list is shown

EXPECTED RESULT
there should be thumbnails for all images from the provided list

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 22.04.3
KDE Plasma Version: 5.24.7
KDE Frameworks Version:  5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
I know one should not propose a solution. but the reason for the issue is clear and so is the solution (in my simple eyes).
when qwenview is called for multi-image display with files from different directories, it does create symlinks to these image files in a /tmp/gwenview-subfolder. unfortunately it uses the image filename to name the symlink. thus, if the images in the different directories have identical filenames, the symlink is replaced over and over again and only the last from the list prevails.
simple solution would be, to name the symlink using the full pathname (not only the filename).