From owner-freebsd-questions@FreeBSD.ORG Wed Apr 30 09:12:11 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A715A1065671 for ; Wed, 30 Apr 2008 09:12:11 +0000 (UTC) (envelope-from gary@pattersonsoftware.com) Received: from nschwmtas04p.mx.bigpond.com (nschwmtas04p.mx.bigpond.com [61.9.189.146]) by mx1.freebsd.org (Postfix) with ESMTP id 3E53B8FC27 for ; Wed, 30 Apr 2008 09:12:11 +0000 (UTC) (envelope-from gary@pattersonsoftware.com) Received: from nschwotgx03p.mx.bigpond.com ([121.223.241.235]) by nschwmtas04p.mx.bigpond.com with ESMTP id <20080430091209.YXNH21542.nschwmtas04p.mx.bigpond.com@nschwotgx03p.mx.bigpond.com>; Wed, 30 Apr 2008 09:12:09 +0000 Received: from mail.pattersonsoftware.com ([121.223.241.235]) by nschwotgx03p.mx.bigpond.com with ESMTP id <20080430091206.PKHI1860.nschwotgx03p.mx.bigpond.com@mail.pattersonsoftware.com>; Wed, 30 Apr 2008 09:12:06 +0000 Received: from localhost (mail [192.168.111.46]) by mail.pattersonsoftware.com (Postfix) with ESMTP id 315575363D1; Wed, 30 Apr 2008 19:11:57 +1000 (EST) X-Virus-Scanned: amavisd-new at pattersonsoftware.com Received: from mail.pattersonsoftware.com ([192.168.111.46]) by localhost (mail.pattersonsoftware.com [192.168.111.46]) (amavisd-new, port 10024) with ESMTP id 6mu4Fe1Bo8sQ; Wed, 30 Apr 2008 19:11:40 +1000 (EST) Received: from elegia (60-242-254-180.static.tpgi.com.au [60.242.254.180]) by mail.pattersonsoftware.com (Postfix) with ESMTP id 60648536105; Wed, 30 Apr 2008 19:11:34 +1000 (EST) Date: Wed, 30 Apr 2008 19:11:29 +1000 From: Gary Newcombe To: wojtek@wojtek.tensor.gdynia.pl 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> Organization: Patterson Software X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A150201.481837E9.0060,ss=1,fgs=0 Cc: freebsd-questions@freebsd.org Subject: Re: Spawning Xdialogs from devd... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2008 09:12:11 -0000 On Wed, 30 Apr 2008 08:25:04 +0200 (CEST), Wojciech Puchar 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//.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"