Subject: Re: Defeating the resource file search path.
Message-ID: <1437@pivot-sts.sbi.com>
Date: 26 Jan 93 19:39:45 GMT
References: <3310@contex.contex.com>
Sender: news@pivot-sts.sbi.com
Reply-To: ray@rann.sbi.com
Organization: Salomon Inc.
Lines: 39
Nntp-Posting-Host: rann
In article 3310@contex.contex.com, avinash@felix.contex.com (Avinash Chopde) writes:
>Is there any way to defeat the default X resource file search path?
>It is extremely difficult to modify X programs if it involves changing
>resource files---even if I keep a copy of the resource file in the
>current directory, the default X mechanism *merges* all the resource file
>it finds - from /usr/lib/app-defaults, from $XUSERFILESEARCHPATH,
>..Xdefaults, and $XENVIRONMENT!
>
>Is it possible to force a X program to use only resource files in
>the current directory, and inhibit this merging of resource files?
>
Why not have your program set the relevant environment variables BEFORE initializing X? You could set XENVIRONMENT to something along the lines of 'dirname `$0`'... couldn't you?
---Raymond
>If this is not possible, how does a X developer maintain and debug
>X resource files? (Edit the resource files in *all* the locations
>on your system is an answer!)
>--
>---------------------------
>Avinash Chopde office : 617 246 1776x5582 Wakefield, MA, USA.