Bug 454473 - In properties dialog for item in the desktop:// IO worker, file size is sometimes not accurate (shows something like "48B")
Summary: In properties dialog for item in the desktop:// IO worker, file size is somet...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: desktop:/ IOWorker (other bugs)
Version First Reported In: 5.25.90
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: ratijas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-27 09:12 UTC by ratijas
Modified: 2025-11-17 20:29 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.6.0 or earlier
Sentry Crash Report:


Attachments
Plasma - file size glitch (253.95 KB, image/png)
2022-05-27 09:12 UTC, ratijas
Details
Desktop Settings - Plasma - Location (53.43 KB, image/png)
2022-05-28 22:37 UTC, ratijas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ratijas 2022-05-27 09:12:18 UTC
Created attachment 149249 [details]
Plasma - file size glitch

SUMMARY

Not sure on which side the bug is. I was trimming a screen recording in HandBrake, and told it to save resulting video file on a Desktop. It created the file immediately, and started processing. Later, when it was done, I opened this video's file properties from Plasma, and it shows Location: / (desktop); Size: 48 B (48). But in Dolphin the information is correct: 2.1 MB

STEPS TO REPRODUCE
1. Convert a video with HandBrake, saving on a Desktop
2. After it has started converting, open file properties

OBSERVED RESULT
Cached information about 48 B size.

EXPECTED RESULT
Actual information.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Kernel Version: 5.17.9-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2

ADDITIONAL INFORMATION
Refreshing the desktop (F5 or context menu) helps fixing outdated information. But it should not be necessary.
Comment 1 Nate Graham 2022-05-27 14:28:56 UTC
Can periodically reproduce; IIRC this is an issue with the desktop:/ ioslave. If you switch your desktop to show ~/Desktop instead of desktop:/, it's fixed, right?
Comment 2 ratijas 2022-05-28 22:37:50 UTC
Created attachment 149300 [details]
Desktop Settings - Plasma - Location

> Can periodically reproduce; IIRC this is an issue with the desktop:/ ioslave. If you switch your desktop to show ~/Desktop instead of desktop:/, it's fixed, right?

Indeed, it does not happen if I manually specify file:///home/ratijas/Desktop as custom location. How did we end up with a special protocol:// for listing desktop, especially the one that does not work properly…

I suppose this bug report is a duplicate of something existing then?
Comment 3 Nate Graham 2022-06-01 16:27:09 UTC
Nah I think this is the OG bug report for it.

I think we have a special desktop:// ioslave mostly because we wanted to have different handling for .desktop files.
Comment 4 kamkaz 2025-02-11 03:12:44 UTC
I think one of the ways to solve it would be to stat the file(s) again, when the properties window is open? (in KFilePropsPlugin)

If I understand correctly, there is already an assumption, that all the KFileItem entries passed have been stat-ed. I don't know if it would incur any noticeable delay for the user, though - and should it be also done when checking properties of multiple files?
Comment 5 Nate Graham 2025-11-17 20:29:57 UTC
I can no longer reproduce this issue at all. Looks like it got fixed at some point.