All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: How can I bring up a dialogue window when a usb device plugged?
Date: Mon, 11 May 2009 22:54:48 +0000	[thread overview]
Message-ID: <20090511225448.GA1383@kroah.com> (raw)
In-Reply-To: <BLU147-W14B5D89247F4418BCE21C480630@phx.gbl>

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

  parent reply	other threads:[~2009-05-11 22:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-11 21:28 How can I bring up a dialogue window when a usb device plugged? Andy Chen
2009-05-11 21:43 ` Greg KH
2009-05-11 22:53 ` Andy Chen
2009-05-11 22:54 ` Greg KH [this message]
2009-05-11 23:03 ` Andy Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090511225448.GA1383@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.