Regarding USB

Chakkaradeep C C chaks.yoper at gmail.com
Wed Mar 22 10:42:41 PST 2006


Hi John and all,

On 3/23/06, John Galloway <jrg at dbengines.com> wrote:
>
>
> On Mar 22, 2006, at 9:47 AM, Chakkaradeep C C wrote:
>
> Hi all,
>
> On 3/22/06, John Galloway <jrg at dbengines.com> wrote:
> >
> > Unless I'm completely confused about all this (always a possibility)HAL
> > doesn't actually mount devices at all.  it only produces a record
> > for the device that it can send out to processes (like say
> > gnome-volume-manager)
> > that are interested in device adds/removes.  Gnome-volume-manager calls
> > pmount-hal which uses the hal data you have merged into the record for
> > this new usb device to mount them (if you have its configure params
> > set to do so of course, use gnome-volume-properties or GConf-editor).
> >
>
> thanks John for the reply :). Ok, so you  mean to say, that i can write a
> python dbus service,listen to HAL add,remove devices and grab those signals
> and achieve what i want?
>
> yes you could do that.  Or just use gnome-volume-manager to do so for you.
> does Yoper include the gnome desktop?  (gnome-volume-manager doesn't
> itself have a UI component, it gets its settings from GConf, its just a
> daemon).
>

Yoper is pure KDE version, and thats the reason i think i may end up in some
complexities in building gnome-volume-manager.I would be happy if you could
provide me some examples on how to do this using python, small samples on
how to write a service which listens for dbus when usb device is added or
removed.....am in vain now googling for this, but no results :(

 -jrg
>
>
>   -jrg
> > On Mar 22, 2006, at 4:39 AM, Chakkaradeep C C wrote:
> >
> > hi all,
> >
> > in my Yoper Distro, i have /usr/share/hal/fdi/policy/10osvendor/10-
> > storage-policy.fdi where i see what should HAL do when it detects the
> > devices.
> >
> > In yoper, the usb gets detected but it does not get mounted and doesnt
> > notify to the user. so , i thought that HAL should be informed where to
> > mount, so i tried adding these lines to
> > /usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi ,
> >
> > ****************
> >     <match key="storage.bus" string="usb">
> >         <merge key=" storage.policy.should_mount"
> > type="bool">true</merge>
> >         <merge key="volume.policy.desired_mount_point"
> > type="string">/media/usb</merge>
> >         <merge key=" volume.policy.mount_filesystem"
> > type="string">vfat</media>
> >         <merge key="
> > volume.policy.mount_option.fscontext=system_u:object_r:removable_t"
> > type="bool">true</merge>
> >         <merge key="volume.policy.mount_option.noatime"
> > type="bool">true</merge>
> >         <merge key="volume.policy.mount_option.sync"
> > type="bool">true</merge>
> >         <merge key="volume.policy.should_mount" type="bool">true</merge>
> >       </match>
> >
> > ****************
> >
> > i restarted hal service, plugged in my usb device, but it doesnt get
> > mounted.....
> >
> > i would be happy if somebody can help me....
> >
> > thanks in advance....
> >
> > --
> > Regards,
> > Chaks,
> > Yoper Ltd.
> > http://www.yoper.com
> > http://www.yoper.com/forum
> > --
> > The main aim of communication is clarity and simplicity. Simplicity
> > means focussed effort.
> > _______________________________________________
> > hal mailing list
> > hal at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/hal
> >
> >
>
>
> --
> Regards,
> Chaks,
> Yoper Ltd.
> http://www.yoper.com
> http://www.yoper.com/forum
> --
> The main aim of communication is clarity and simplicity. Simplicity means
> focussed effort.
>
>
>


--
Regards,
Chaks,
Yoper Ltd.
http://www.yoper.com
http://www.yoper.com/forum
--
The main aim of communication is clarity and simplicity. Simplicity means
focussed effort.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/hal/attachments/20060323/f1b83015/attachment-0001.htm


More information about the hal mailing list