Bug 188482 - Device notifier support for encrypted volumes
Summary: Device notifier support for encrypted volumes
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-devicenotifier (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Alexis MENARD
URL:
Keywords:
: 183958 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-30 16:05 UTC by wamrfixit
Modified: 2009-06-27 16:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wamrfixit 2009-03-30 16:05:42 UTC
Version:           unknown (using 4.2.1 (KDE 4.2.1) "release 106", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.19-3.2-default

I no longer get any icon in the device notifier plasmoid when I plug in my Western Digital "MyBook" 1tb USB hard drive.

It has only a LUKS encrypted reiserFS partition on it if that makes any difference.

My iPod shows up, as do my USB memory sticks, but not my hard drive.

The drive shows up (luckily) in Dolphin, and once I click on it in Dolphin, and I have entered my password, the drive then shows up in the plasmoid.

I have all the latest updates from openSUSE installed, they are at the moment frozen (I believe) for the 4.2.2 release.

Thanks :)
Comment 1 Kevin Ottens 2009-06-22 09:43:07 UTC
Quick diagnostic as discussed with Aaron on IRC:
 - There's no action file for encrypted devices (that's what the notifier applet uses to choose to display a device or not)
 - We probably want such a file which just triggers the "mounting" of encrypted volumes, using solid-hardware for the action should be enough.

The action part of the desktop file will probably be: solid-hardware mount %i

Hope that helps.
Comment 2 Aaron J. Seigo 2009-06-23 01:01:12 UTC
hmm.. actually, we just pass the action into soliduiserver, which check if isAccessible() and if not it first does setup(); Kevin: on an encrypted device does setup() handle all the details such as passwords and what not? if so, then i could just alter the current .desktop file very slightly and this should start working.
Comment 3 Aaron J. Seigo 2009-06-23 18:19:14 UTC
*** Bug 183958 has been marked as a duplicate of this bug. ***
Comment 4 Kevin Ottens 2009-06-24 08:57:08 UTC
Hmmm, indeed that could be enough to make it roll. Didn't think about it.
Comment 5 Aaron J. Seigo 2009-06-27 09:59:42 UTC
SVN commit 987982 by aseigo:

support encrypted volumes
CCBUG:188482


 M  +1 -1      test-predicate-openinwindow.desktop  


WebSVN link: http://websvn.kde.org/?view=rev&revision=987982
Comment 6 Aaron J. Seigo 2009-06-27 10:00:52 UTC
SVN commit 987983 by aseigo:

support encrypted volumes
BUG:188482


 M  +1 -1      test-predicate-openinwindow.desktop  


WebSVN link: http://websvn.kde.org/?view=rev&revision=987983
Comment 7 wamrfixit 2009-06-27 11:04:22 UTC
Thankyou all for listening and for the work put into fixing this bug.  I just wanted to let you all know that your hard work is appreciated :).

Am I also allowed to ask how I can incorporate the fix into my current system?

Thanks again :).
Comment 8 Aaron J. Seigo 2009-06-27 11:38:31 UTC
either upgrade to 4.3 when it comes out, or you can alter the test-predicate-openinwindow.desktop file on your system so it has the change linked to in the commit messages:

http://websvn.kde.org/branches/KDE/4.3/kdebase/workspace/plasma/applets/devicenotifier/test-predicate-openinwindow.desktop?r1=987983&r2=987982&pathrev=987983

in fact, if you could do that, restart plasma and try your encrypted fs to confirm that it works for you, that'd be great.
Comment 9 wamrfixit 2009-06-27 13:17:42 UTC
Fantastic, it works :)

The applet now pops up when I plug my drive, and everything functions as normal. 

Additional system info -

OpenSUSE 11.1 (64bit)
KDE4 Version 4.2.4 (KDE 4.2.4) "release 2"
Kernel - 2.6.29.3-0.1-default (self compiled, not repo)

Modification summary - 

1. vi /usr/share/kde4/apps/solid/actions/test-predicate-openinwindow.desktop
2. comment out line 3 with a "#"
3. insert the following line -

X-KDE-Solid-Predicate=[ [ StorageVolume.ignored == false AND [ StorageVolume.usage == 'FileSystem' OR StorageVolume.usage == 'Encrypted' ] ] OR [ IS StorageAccess AND StorageDrive.driveType == 'Floppy' ] ]

4. Save, exit, reboot.

Thankyou very much :D.
Comment 10 James Hogan 2009-06-27 13:54:28 UTC
Thanks for the fix.

Just FYI, After the change to that file you can restart plasma without rebooting or logging out with something like the following shell command:

killall -15 plasma && plasma
Comment 11 Aaron J. Seigo 2009-06-27 16:16:12 UTC
or even better: kquitapp plasma && plasma 

glad it's working; really, the fix on my side was easy, Kevin's work with the tools in Solid is where all the heavy lifting is :)