[Techtalk] Accessing X program from virtual console
David Sumbler
david at aeolia.co.uk
Sat Oct 1 19:10:40 EST 2005
Almut Behrens <almut-behrens at gmx.net> writes:
> On Fri, Sep 30, 2005 at 09:03:37PM +0100, David Sumbler wrote:
>> If I insert '--display=:0' to the script line, I then get:
>>
>> "Error: Failed to connect to X server."
>
> Apparently, firefox doesn't handle the option '--display' properly
> (actually, in the docs I don't see any indication that it should --
> though I might not have looked carefully enough...).
man firefox gives:
OPTIONS
A summary of the options supported by firefox is included below.
...
X11 options
--display=DISPLAY
X display to use
> Anyhow, for me it works if I set the usual DISPLAY environment
> variable (which is typically not set in a virtual console).
> I.e. simply put the following additional line in the script
>
> export DISPLAY=:0
> /usr/bin/firefox ... ...
Works a treat!
Thanks for your help.
David
--
David Sumbler
david at aeolia.co.uk
More information about the Techtalk
mailing list