Bug 411168

Summary: gwenview stalls because it completely scans the /tmp folder which has 1000s of unrelated subfolders
Product: [Applications] gwenview Reporter: gh228
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: grave CC: justin.zobel
Priority: NOR    
Version First Reported In: 18.12.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description gh228 2019-08-22 13:15:40 UTC
SUMMARY
gwenview stalls because it completely scans the /tmp folder which has 1000s of unrelated subfolders

STEPS TO REPRODUCE
1. I want to view some images , e.g. gwenview /home/myname/pictures/subfolder/*.png
2. gwenview produces a  folder overview menu on the left hand side which I do neither need nor want
3. That overview includes the /tmp folder which has 1000s of unrelated subfolders  
4. gwenview tries to scan all of them which takes minutes during which time it is practically ununsable

OBSERVED RESULT
gwenview tries to scan all of them which takes minutes during which time it is practically ununsable

EXPECTED RESULT

gwenview opens just the files on the command line and does not attempt to scan half of my computer

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: opensuse 15.1
KDE Frameworks 5.55.0
Qt 5.9.7 (built against 5.9.7)
The xcb windowing system

ADDITIONAL INFORMATION

how can I prevent that scanning? Even better how can I make gwenview operate directly on the files that I specify instead
of copies in /tmp
Comment 1 gh228 2019-08-22 13:30:43 UTC
I could resolve the main issue (stalling) by opening the "operations" tab
instead of "folders", which I had overlooked before.

However I still would like to have gwenview operate on the original files and not copies in /tmp.

Deleting unused files, for example, is useless in /tmp, and the inability to delete pictures in the original destination makes it much less useful
as a picture sorting tool.
Comment 2 Justin Zobel 2020-11-20 05:02:06 UTC
Thanks for the report, do the folders in /tmp contain images/videos or are they other files?

I've just tried to replicate this issue when starting gwenview 20.08.3 but I am unable to.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I'm setting status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 3 gh228 2020-11-24 15:42:28 UTC
Thanks for following this up. In gwenview version 18.12.3
it seems ok.

With best greetings,

Gerhard