From: Martin Waitz <tali@admingilde.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Help Please
Date: Wed, 19 May 2004 15:51:18 +0000 [thread overview]
Message-ID: <20040519155118.GN11542@admingilde.org> (raw)
In-Reply-To: <40AB352F.2050001@salzburg-online.at>
[-- Attachment #1: Type: text/plain, Size: 914 bytes --]
hi :)
On Wed, May 19, 2004 at 12:21:35PM +0200, Dalibor Malek wrote:
> When I start the script ./usb-storage.sh it?s running properly.
>
> My problem is, where I have to tell the hotplug service that it should
> start my script.
> Simply to call the script ?usb-storage? and copy it under
> ////etc/hotplug/usb// with 777 doesn?t do it(I tried).
hotplug executes all scripts as root and with minimal environment.
it does not have access to your x-server and thus cannot open any
windows on your desktop (there may be even multiple users logged in,
how should it know where it should display its windows)
you need a program that listens for hotplug events and starts
openoffice when you insert your usb drive.
when you start that program from your x session, it has access to
your display and thus can open windows.
look at gnome-volume-manager. it does exactly that.
--
Martin Waitz
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2004-05-19 15:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-19 10:21 Help Please Dalibor Malek
2004-05-19 15:51 ` Martin Waitz [this message]
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=20040519155118.GN11542@admingilde.org \
--to=tali@admingilde.org \
--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).