*BSD News Article 86054


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.windows.x,comp.unix.bsd.freebsd.misc
Subject: Re: app defaults not recognized...
Date: 2 Jan 1997 13:38:20 GMT
Organization: Private BSD site, Dresden
Lines: 33
Message-ID: <5agdoc$6fa@uriah.heep.sax.de>
References: <32C81227.41C67EA6@javanet.com>
  <x0bubamu0n.fsf@gemini.ee.ryerson.ca> <E3CBwJ.47n@freddy.in-berlin.de>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.windows.x:93620 comp.unix.bsd.freebsd.misc:33499

fried@freddy.in-berlin.de (Friedhelm Kappen) wrote:

> >setenv XUSERFILESEARCHPATH ~/app-defaults/%N
> 
> >in your .xxxrc file (i.e. your shell); don't forget the %N at the
> >end.
> 
> 
> What does %N mean? Can someone explain it to me, please?

%N is the class name of the application.  This is normally the name of
the binary, with some obscure capitalization applied.  (Clients are
free to pick any name, so e.g. a client whose binary is called xterm
could use Xterm, XTerm, or maybe xterm as its application class name.)

Btw., you should preferably put ~/app-defaults/%N%C before the one
withouth %C.  %C stands for `customization', and the usual
customization is to have:

#ifdef COLOR
*customization: -color
#endif

If you're searching for %N%C first, and then for %N, your client will
find XTerm-color in preferance over XTerm, but only if your display is
supporting colors.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)