Bug 445481

Summary: Notification shows mount point while Dolphin copies data to usb removable device for the first time after login
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: NotificationsAssignee: Kai Uwe Broulik <kde>
Status: CONFIRMED ---    
Severity: minor CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.27.80   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: notification showing the mount point
notification saying 'X GiB Removable Media' as expected

Description Patrick Silva 2021-11-14 13:34:16 UTC
Created attachment 143540 [details]
notification showing the mount point

STEPS TO REPRODUCE
1. make sure 'Enable automatic mounting of removable media' option is uncheck in Removable Devices KCM
2. if your removable device is connected to usb port, disconnect it
3. logout
4. start Plasma session
5. open Dolphin
6. connect your device to usb port but do NOT mount/open it
7. copy to your device a file that is not present on it (drag a file and drop it on your device shown in Places panel, choose 'Copy here' from context menu): as we can see in the first attached screenshot, a notification shows the mount point of your removable device
8. repeat the step 7: as we can see in the second attached screenshot, now the notification says 'X GiB Removable Media' as expected

OBSERVED RESULT
Notification shows mount point while Dolphin copies data to usb removable device for the first time after login

EXPECTED RESULT
the notification should always say 'X GiB Removable Media'

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 1 Patrick Silva 2021-11-14 13:34:54 UTC
Created attachment 143541 [details]
notification saying 'X GiB Removable Media' as expected
Comment 2 Kai Uwe Broulik 2021-12-21 23:01:48 UTC
I suppose the KFilePlacesModel, which is created when a job is created, updated asynchronously after the job text has already been queried and since there is only a single file, the text does not update.

Listening to KFilePlacesModel signals and updating the text live has been on my agenda for a while but was blocked on the model not emitting signals properly, which was fixed recently iirc.