Proposal - functions for access to desktop information
Zajcev Evgeny
zevlg at yandex.ru
Thu Nov 20 13:39:50 EST 2008
Aidan Kehoe <kehoea at parhasard.net> writes:
[..]
> That’s not workable for implementing what Jonathan wants to do, though. This
> is from one of my current sessions, started in a screen(1) pseudo-tty, with
> a gnuclient X11 window:
>
> (getenv "DISPLAY")
> => nil ;; This means we can’t trust getenv
> (selected-device)
> => #<x-device on ":0.0" 0x1400f016>
> (XOpenDisplay (device-connection (selected-device)))
> => (error "Network error: connection failed, \"Connection refused\", \"bonbon\", \"X-bonbon:0\"")
> ;; That was because the connection wasn’t a TCP connection, it was a local
> ;; unix connection.
Yes, xlib requires TCP connections available to X, because of (yet?)
no support of unix sockets in (S)XEmacs. With xlib-ffi (only SXEmacs)
there is no such problem, becase xlib-ffi uses native C Xlib routines.
--
lg
More information about the XEmacs-Beta
mailing list