Bug 399986

Summary: device icon in device notifier indicates that already mounted device is unmounted
Product: [Frameworks and Libraries] frameworks-solid Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Lukáš Tinkl <lukas>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs, nate, thomas.surrel
Priority: NOR    
Version: 5.52.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.15.0
Attachments: screenshot - icon of 'Docs' incorrectly indicates that the device is unmounted

Description Patrick Silva 2018-10-18 14:02:00 UTC
Created attachment 115724 [details]
screenshot - icon of 'Docs' incorrectly indicates that the device is unmounted

STEPS TO REPRODUCE
1. insert an optical disc or connect a storage device to an usb port
2. mount your device using the device notifier or clicking your device entry in Dolphin, under "Removable devices".
3. 

OBSERVED RESULT
device entry in Dolphin indicates that the device is mounted (no red icon overlaps the device icon). However device icon in device notifier is overlaped by the same red icon shown when the device is unmounted. See the screenshot please.

EXPECTED RESULT
device notifier should reflect device status correctly.

SOFTWARE VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.14.1
Qt Version: 5.12.0 beta2
KDE Frameworks Version: 5.51.0
Kernel Version: 4.18.14-arch1-1-ARCH
Comment 1 Thomas Surrel 2018-10-19 09:32:13 UTC
Would it be possible for you to try the fix in https://phabricator.kde.org/D16170 ?
That might solve your issue as well.
Comment 2 Patrick Silva 2018-11-29 15:43:54 UTC
To mount devices in /media instead in /run/media/$USER/ fixes the bug here.
https://wiki.archlinux.org/index.php/udisks#Mount_to_/media_(udisks2)

Operating System: Arch Linux 
KDE Plasma Version: 5.14.4
Qt Version: 5.12.0
KDE Frameworks Version: 5.52.0
Kernel Version: 4.19.4-arch1-1-ARCH
Comment 3 Thomas Surrel 2019-01-09 08:22:35 UTC
Git commit a7b2ecdb12b86cacba894309779e4ea1dbfdeed9 by Thomas Surrel.
Committed on 09/01/2019 at 08:22.
Pushed by thsurrel into branch 'master'.

[Device Notifier] Restore busy indicator

Summary:
This patch fixes two issues:
- the 'state' of the device now propagates correctly, that makes the busy indicator be displayed again, device emblems are also updated correctly
- there is no more delay between the moment when the device is actually mounted and the moment the device notifier says it is. The worst case used to be 5 seconds.
Related: bug 354321

Reviewers: #plasma, #vdg, broulik, bruns, ngraham, davidedmundson

Reviewed By: #plasma, #vdg, ngraham, davidedmundson

Subscribers: mart, cfeck, ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D16170

M  +13   -2    applets/devicenotifier/package/contents/ui/DeviceItem.qml
M  +1    -1    applets/devicenotifier/package/contents/ui/devicenotifier.qml

https://commits.kde.org/plasma-workspace/a7b2ecdb12b86cacba894309779e4ea1dbfdeed9