This forum has been archived. All content is frozen. Please use KDE Discuss instead.

pmount-hal as devicenotifier action?

Tags: None
(comma "," separated)
User avatar
Nate_KS
Registered Member
Posts
9
Karma
0
OS

pmount-hal as devicenotifier action?

Thu Sep 03, 2009 12:42 pm
I've been trying to figure out how to add an action to devicenotifier that would perform a simple mount on a USB thumb drive (or any other removable mass storage device) without the need to open Dolphin each time (wasted time and CPU/memory resources). My search has led me to pmount-hal as a possible way to do this. So far, I'm not all too sure what pmount-hal expects and what devicenotifier provides in terms of device names, etc.

Does anyone have a good idea how this might be accomplished?


Happy Slacker and Plasma 5 user!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The Device Notifier is powered by Solid Predicates, which instruct it which devices match the action. KDE 4.3 included a editor for these, which includes information on url macros such as %udi.

System Settings > Advanced > Device Actions


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Nate_KS
Registered Member
Posts
9
Karma
0
OS
I understand where to edit the actions, in fact that is why I'm curious about whether pmount-hal can be used by devicenotifier. Is there some sort of documentation or HOWTO about these actions?


Happy Slacker and Plasma 5 user!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
As long as pmount-hal does not need root access, then it should be possible. The Device Actions control module does have some limited documentation on them as well. Otherwise you will need to ask in #solid on FreeNode.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]