linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Help Please
@ 2004-05-19 10:21 Dalibor Malek
  2004-05-19 15:51 ` Martin Waitz
  0 siblings, 1 reply; 2+ messages in thread
From: Dalibor Malek @ 2004-05-19 10:21 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I wonder if someone can help me.
I made a little script

#!/bin/bash

killall soffice.bin
/opt/Openoffice.org/program/soffice.bin /media/sdb/text.sxi

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).

I just don’t get it how this is functioning(I already had to install my 
system three times cause I destroyed the hotplug scripts trying).

Does anyone have an Idea?

Thank You

Dalibor Malek




-------------------------------------------------------
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%62&alloc_ida84&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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help Please
  2004-05-19 10:21 Help Please Dalibor Malek
@ 2004-05-19 15:51 ` Martin Waitz
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Waitz @ 2004-05-19 15:51 UTC (permalink / raw)
  To: linux-hotplug

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-19 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-19 10:21 Help Please Dalibor Malek
2004-05-19 15:51 ` Martin Waitz

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).