Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 2008 19:11:29 +1000
From:      Gary Newcombe <gary@pattersonsoftware.com>
To:        wojtek@wojtek.tensor.gdynia.pl
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Spawning Xdialogs from devd...
Message-ID:  <20080430191129.f646e26a.gary@pattersonsoftware.com>
In-Reply-To: <20080430082403.T99651@wojtek.tensor.gdynia.pl>
References:  <20080429160851.8f21394e.gary@pattersonsoftware.com> <20080430082403.T99651@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Apr 2008 08:25:04 +0200 (CEST), Wojciech Puchar
<wojtek@wojtek.tensor.gdynia.pl> wrote:

> > I'm curious to know what is actually going on here. I wouldn't have thought the context from which devd is restarted would make any difference, but clearly it does. Any clues?
> >
> > Also, does anyone have any ideas how I can call Xdialog to get the windows displayed?
> >
> 
> you run Xdialog from root (devd is root), you run X from user.

Even if running X under root, it's the same behaviour. Unless devd is
restarted, there is no sound or xdialogs. If I restart devd from
another console, then the sound device becomes available and sound can
be heard, but no Xdialogs. If devd is restarted from within X, then
both sound and Xdialogs are ok. This is with any window manager, and
nothing much else is running here to screw things up.

The script is definitely being run on the keypress each time. There's
obviously something I'm missing about devd here.

> 
> ln -s /home/<user>/.Xuathority to /root/.Xauthority
> 
> and of course add
> 
> DISPLAY=:0 before Xdialog

> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080430191129.f646e26a.gary>