Re: [Nautilus-list] Launching Nautilus on USB Hotplug Notification
- From: Seth Nickell <snickell stanford edu>
- To: Ryan Shaw <ryan shaw stanfordalumni org>
- Cc: nautilus-list lists eazel com
- Subject: Re: [Nautilus-list] Launching Nautilus on USB Hotplug Notification
- Date: 31 Jan 2002 01:03:16 -0800
On Wed, 2002-01-30 at 08:41, Ryan Shaw wrote:
> Hello,
>
> I have USB hotplugging set up on my machine
> so that pictures are automatically downloaded
> from my camera (via jphoto) when I plug it in.
>
> I would like to have the script that is run
> when hotplug detects my camera launch nautilus
> as well, as it is my image browser of choice.
>
> Hotplugging scripts are run as root, so I have
> the following line to launch nautilus:
>
> su - ryan -c "nautilus --display=:0.0 > /home/ryan/nautilus.log 2>&1" &
>
> This works if I just run the script as root,
> but it doesn't work when the script is initiated
> buy the actual hotplugging (kernel calls
> /sbin/hotplug).
>
> If I replace "nautilus" above with some other
> GUI app (say, "eog"), it works. Only nautilus
> seems to fail, with no output to either stdout
> or stderr.
>
> Does nautilus depend on some environment variable
> that might not be getting set? The "-" option to
> su should be setting up the correct environment,
> but maybe nautilus is looking for something strange?
Does it work if you don't run it as root?
-Seth
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]