Re: How can I bring up a dialogue window when a usb device plugged?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 11, 2009 at 03:53:52PM -0700, Andy Chen wrote:
> 
> Hi Greg,
>  
> Thanks for the advice.
>  
> For the mechanism you mentioned, does it mean that I should create a
> daemon with libudev to keep on tracking the event coming out and
> bringing the gui window from there?

Yes.

> Is it the method employed in current kernel for the file explore auto
> pop up when usb hard drive plug in?

The kernel does no such thing, that is up to the desktop infrastructure.
I think Gnome uses HAL and dbus to do this currently, KDE uses much the
same thing as well.  I suggest you go look at their code if you have
questions.

good luck,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux