[Prev][Next][Index]
Re: Few newbie questions about xhterm
Omer Zak <xlacha1@wizard.weizmann.ac.il> wrote:
>
> 1. How can I tell whether my Xfree86 is based upon R5 or R6 of X-Windows
> (I have an old version of Linux, no reason to upgrade so far)?
Check out /usr/include/X11/Xlib.h for the line
#define XlibSpecificationRelease
There's also a function/macro that may be used by a running application which is
called VendorRelease().
Evgeny Stambulchik <fnevgeny@plasma-gate.weizmann.ac.il> answered:
>If it's old, it's certainly R5.
>Run /sbin/ldconfig -D and see if it shows libX*6*. I fit does, you have R6.
> 2. How does xhterm know where to find its resource file (Xhterm.ad) when
> it gets executed?
There are directories where the X Consurtium decided that the resource file(s)
should be. It normally looks for it under /usr/X11/lib/X11/app-defaults/
and under your $HOME. You may also specify resource in your $HOME/.Xdefaults
or $HOME.Xdefaults-hostname, or under a file specified by the environment
variable XENVIRONMENT. If you're not sure what files are searched, run
the application (in this case xhterm) under strace (example: strace xhterm >& junk &),
then quit the application and exmine the output (file junk). Search for all 'access'
and 'open' system calls. ('strace' is like 'trace' on SunOS and 'truss' on Solaris).
Evgeny answered:
>Copy it to /usr/lib/X11/app-defaults/Xhterm; it should be installed there
> automatically if you did `make install'
--ilan