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 21:43:15 +0000 [thread overview]
Message-ID: <20090511214315.GA22531@kroah.com> (raw)
In-Reply-To: <BLU147-W14B5D89247F4418BCE21C480630@phx.gbl>
On Mon, May 11, 2009 at 02:28:32PM -0700, Andy Chen wrote:
>
> Hi There,
>
> I need someone kind help on config udev module for auto pop up
> dialogue window when device plugged via the rule define. Here is
> simple rules I defined but not working. Can someone point out what
> should be for the proper setting:
>
> ACTION="add", SUBSYSTEM="usb", ATTR{idVendor}="04b4", ATTR{idProduct}="1004", RUN+="Xdialog --title "INFO BOX"& "
This will not work as you do not have a x session from this context.
Try writing a program that either ties into libudev to catch these kinds
of events, or uses dbus to watch for HAL events. Then you can create
your own dialog box when specific devices show up as you wish.
Hope this helps,
greg k-h
next prev parent reply other threads:[~2009-05-11 21:43 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 [this message]
2009-05-11 22:53 ` Andy Chen
2009-05-11 22:54 ` Greg KH
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=20090511214315.GA22531@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).