Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

what is %S in XFILESEARCHPATH ?

81 views
Skip to first unread message

conr...@gmail.com

unread,
Mar 31, 2018, 7:03:59 AM3/31/18
to
I have a prep script that does this:

export XFILESEARCHPATH=/usr/lib/X11/%T/%N%S

I know what the %T and %N mean, but what is the %S at the end?

Kenny McCormack

unread,
Mar 31, 2018, 9:56:50 AM3/31/18
to
In article <5efbaf64-e646-4e8d...@googlegroups.com>,
According to:

http://www.faqs.org/faqs/Xt-FAQ/section-21.html

We have:

setenv XFILESEARCHPATH /usr/lib/X11/%T/%N:$OPENWINHOME/lib/%T/%N

The value of this environment variable is a colon-separated list of
pathnames. The pathnames contain replacement characters as follows
(see XtResolvePathname()):

%N The value of the filename parameter, or the
application's class name.
%T The value of the file "type". In this case, the
literal string "app-defaults"
%C customization resource (R5 only)
%S Suffix. None for app-defaults.
%L Language, locale, and codeset (e.g. "ja_JP.EUC")
%l Language part of %L (e.g. "ja")
%t The territory part of the display's language string
%c The codeset part of the display's language string

So, it is a "suffix" of some sort.

Note that, earlier on, it says:

NOTE: when looking for app-default files with XUSERFILESEARCHPATH,
for some bizarre reason, neither the type nor file suffix is
defined so %T and %S are useless.

So, take that with the usual grain of salt...

--
I've been watching cat videos on YouTube. More content and closer to
the truth than anything on Fox.

Winston

unread,
Mar 31, 2018, 10:01:59 AM3/31/18
to
man XtResolvePathname says "The value of the suffix parameter." and
"The suffix parameter is intended to be appended to the file name.
Possible values might include ``.txt'', ``.dat'', and ``.bm''."

"https://books.google.com/books?id=mwMCzaMK2HkC&pg=PA335&lpg=PA335",
page 335, middle of the page, in the description of XtResolvePathname,
has a slightly longer description.
-WBE
0 new messages