• what is %S in XFILESEARCHPATH ?

    From conrrrod@gmail.com@21:1/5 to All on Sat Mar 31 04:03:58 2018
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenny McCormack@21:1/5 to conrrrod@gmail.com on Sat Mar 31 13:56:49 2018
    In article <5efbaf64-e646-4e8d-a8ca-7ad7e8b9cc06@googlegroups.com>,
    <conrrrod@gmail.com> wrote:
    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?

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Winston@21:1/5 to conrrrod@gmail.com on Sat Mar 31 10:02:03 2018
    conrrrod@gmail.com writes:
    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?

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)