Bug 290862

Summary: KDE4.8 RC2: Device Notifier eject button does not work for LUKS Encrypted USB memory stick
Product: [Unmaintained] plasma4 Reporter: Paul Worrall <p.r.worrall>
Component: widget-devicenotifierAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: major CC: korossy, wilderkde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Paul Worrall 2012-01-07 10:00:42 UTC
The eject button on the device notifier pop-up menu in KDE4.8 v4.7.97 does not unmount LUKS encrypted USB memory stick, but shows  ablue tick as though it had.

Reproducible: Always

Steps to Reproduce:
1, Insert a LUKS encrypted USB memory stick
2. Click mount button on device notifier pop-up
3. Enter password to unencrypt device
4. Device is mounted, and mount button changes to an eject button. Tooltip says not safe to remove device (OK so far...)
5. Click eject button on device notifier menu
6. Device notifier shows a blue tick suggesting device has been ejected, but device entry remains on the pop-up menu with an eject button, tooltip says not safe to remove device and *Device is not unmounted*

The blue tick could lead the user to remove the device while it is still mounted and hence potentially lose data.

Actual Results:  
Device not ejected

Expected Results:  
Device is unmounted and ejected.

Workaround:
Device can be ejected using Dolphin
Comment 1 Jacopo De Simoi 2012-01-07 13:42:32 UTC
Git commit e8f8860615b4eb016e339aa8f0cabc30cdc8486b by Jacopo De Simoi.
Committed on 07/01/2012 at 14:39.
Pushed by jacopods into branch 'KDE/4.8'.

Rely on the dataengine to obtain accessibility

Do not rely on emblems to detect the accessibility state
of a device! We have a dataengine for that

M  +3    -4    plasma/generic/applets/devicenotifier/package/contents/ui/devicenotifier.qml

http://commits.kde.org/kde-workspace/e8f8860615b4eb016e339aa8f0cabc30cdc8486b