Hi John and all,<br><br><div><span class="gmail_quote">On 3/23/06, <b class="gmail_sendername">John Galloway</b> <<a href="mailto:jrg@dbengines.com">jrg@dbengines.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;"><br><div></div><div style="direction: ltr;"><span class="q"><div>On Mar 22, 2006, at 9:47 AM, Chakkaradeep C C wrote:</div><br><blockquote type="cite">Hi all,<br><br><div><span class="gmail_quote">
On 3/22/06, <b class="gmail_sendername">John Galloway</b> <<a href="mailto:jrg@dbengines.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jrg@dbengines.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;">Unless I'm completely confused about all this (always a possibility)<div>HAL doesn't actually mount devices at all. it only produces a record</div><div>for the device that it can send out to processes (like say gnome-volume-manager)
</div><div>that are interested in device adds/removes. Gnome-volume-manager calls</div><div>pmount-hal which uses the hal data you have merged into the record for</div><div>this new usb device to mount them (if you have its configure params
</div><div>set to do so of course, use gnome-volume-properties or GConf-editor).</div></div></blockquote><div><br>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?
<br></div></div></blockquote></span></div><div style="direction: ltr;">yes you could do that. Or just use gnome-volume-manager to do so for you.</div><div>does Yoper include the gnome desktop? (gnome-volume-manager doesn't
</div><div>itself have a UI component, it gets its settings from GConf, its just a daemon).</div></div></blockquote><div><br>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 :(
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="direction: ltr;"><div> -jrg</div><div style="direction: ltr;"><span class="e" id="q_10a233b8eef20d45_3">
<br><blockquote type="cite"><div><div></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="direction: ltr;"><div> -jrg<br>
<div></div><div style="direction: ltr;"> <span><div>On Mar 22, 2006, at 4:39 AM, Chakkaradeep C C wrote:</div><br></span></div><div style="direction: ltr;"><blockquote type="cite"></blockquote></div><div style="direction: ltr;">
<span>hi all,<br><br>in my Yoper Distro, i have <span style="font-weight: bold;">/usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi</span> where i see what should HAL do when it detects the devices. <br><br>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
<span style="font-weight: bold;"> /usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi</span> ,<br><br>****************<br><span style="font-weight: bold;"> <match key="storage.bus" string="usb">
<br> <merge key=" storage.policy.should_mount" type="bool">true</merge><br> <merge key="volume.policy.desired_mount_point" type="string">/media/usb</merge>
<br> <merge key=" volume.policy.mount_filesystem" type="string">vfat</media><br> <merge key="volume.policy.mount_option.fscontext=system_u:object_r:removable_t" type="bool">true</merge>
<br> <merge key="volume.policy.mount_option.noatime" type="bool">true</merge><br> <merge key="volume.policy.mount_option.sync" type="bool">true</merge>
<br> <merge key="volume.policy.should_mount" type="bool">true</merge><br> </match><br><span style="font-weight: bold;"><br></span></span>****************<br><br>i restarted hal service, plugged in my usb device, but it doesnt get mounted.....
<br><br>i would be happy if somebody can help me....<br><br>thanks in advance....<br><br>-- <br>Regards,<br>Chaks,<br>Yoper Ltd.<br><a href="http://www.yoper.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.yoper.com</a><br><a href="http://www.yoper.com/forum" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.yoper.com/forum</a><br>--<br>The main aim of communication is clarity and simplicity. Simplicity means focussed effort.
</span></div><div style="direction: ltr;"><div style="margin: 0px;">_______________________________________________</div><div style="margin: 0px;">hal mailing list</div><div style="margin: 0px;"><a href="mailto:hal@lists.freedesktop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
hal@lists.freedesktop.org</a></div><div style="margin: 0px;"><a href="http://lists.freedesktop.org/mailman/listinfo/hal" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.freedesktop.org/mailman/listinfo/hal
</a></div> </div><br></div> </div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Chaks,<br>Yoper Ltd.<br><a href="http://www.yoper.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.yoper.com</a><br><a href="http://www.yoper.com/forum" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.yoper.com/forum</a><br> --<br>The main aim of communication is clarity and simplicity. Simplicity means focussed effort.
</blockquote></span></div><div style="direction: ltr;"></div><br>
</div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Chaks,<br>Yoper Ltd.<br><a href="http://www.yoper.com">http://www.yoper.com</a><br><a href="http://www.yoper.com/forum">http://www.yoper.com/forum</a><br>
--<br>The main aim of communication is clarity and simplicity. Simplicity means focussed effort.