[Mageia-dev] Running X11 apps from the console after exporting DISPLAY
Colin Guthrie
mageia at colin.guthr.ie
Fri Jul 29 10:29:05 CEST 2011
'Twas brillig, and Christiaan Welvaart at 28/07/11 13:32 did gyre and
gimble:
> On Thu, 28 Jul 2011, Colin Guthrie wrote:
>
>> Not sure when this started happening but I presume it's a deliberate
>> change.
>
> Same here, but it was "a while ago" (:
>
>> When I login via text console while already running X11, and do: "export
>> DISPLAY=:0; xeyes", I expect to see some googly eyes on my desktop when
>> I switch back.
>>
>> But this doesn't seem to work these days. Is there something I can do to
>> make this work again? I suspect it's maybe related to not knowing the
>> path to the X11 socket file or something?
>
> You also need to set XAUTHORITY - I usually get its value from
> /proc/$pid/environ for an already running process (like gnome-session).
> But the value is something like /var/run/gdm/auth-for-$user-$X/database .
Cool, that works fine :)
Probably worth writing a little script to do that parsing for me as I'll
no doubt forget in time...
Cheers
Col
--
Colin Guthrie
mageia(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
More information about the Mageia-dev
mailing list