Bug 445481 - Notification shows mount point while Dolphin copies data to usb removable device for the first time after login
Summary: Notification shows mount point while Dolphin copies data to usb removable dev...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.27.80
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-14 13:34 UTC by Patrick Silva
Modified: 2023-11-16 18:21 UTC (History)
2 users (show)

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


Attachments
notification showing the mount point (27.22 KB, image/png)
2021-11-14 13:34 UTC, Patrick Silva
Details
notification saying 'X GiB Removable Media' as expected (29.61 KB, image/png)
2021-11-14 13:34 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
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.