per-user udev rules subset
gibboris at gmail.com
gibboris at gmail.com
Fri Oct 9 07:54:05 PDT 2009
Hi,
I attempted to do what I wanted.
(just a POF, but I'm still without any advice
about the correct way to do)
So here comes 11k of noobish-bloated code which :
- parse some config files of this format (GKeyFile) :
[spec]
name=this_device
event=DeviceMounted
exec=echo ADDED docus >> /tmp/dk.log
IdLabel=docus
IdUuid=f2574b18-3fa6-4649-9908-eaa8503cab33
- then monitor org.freedesktop.DeviceKit.Disks
- and foreach event received :
- - try to match against the files (internally called Settings).
- - if the match success the exec is printed (should be execve in the future).
Any advices (of course I will have to rewrite the whole) ?
Raph
More information about the devkit-devel
mailing list