From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Waitz Date: Wed, 19 May 2004 15:51:18 +0000 Subject: Re: Help Please Message-Id: <20040519155118.GN11542@admingilde.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="s8J8qjRpxLkp1Gun" List-Id: References: <40AB352F.2050001@salzburg-online.at> In-Reply-To: <40AB352F.2050001@salzburg-online.at> To: linux-hotplug@vger.kernel.org --s8J8qjRpxLkp1Gun Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > My problem is, where I have to tell the hotplug service that it should=20 > start my script. > Simply to call the script ?usb-storage? and copy it under=20 > ////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. --=20 Martin Waitz --s8J8qjRpxLkp1Gun Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAq4J1j/Eaxd/oD7IRAtE/AJ9LqOyJaU5Dz5WfMTAtyiiehFNyUQCeOTcN zI5Ee+3+TUDMgnhX8kmUkvs= =6Y9e -----END PGP SIGNATURE----- --s8J8qjRpxLkp1Gun-- ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel