menu: New macro #usergnusteppath# for user GNUstep directory
commit5f2dac318cdafc10b5696f069951b9119314523f
authorDoug Torrance <dtorrance@piedmont.edu>
Sat, 19 Aug 2017 00:37:49 +0000 (18 20:37 -0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 19 Aug 2017 10:14:38 +0000 (19 11:14 +0100)
tree328dd51e9dab2c2e7d9b921e62c20c87e50277e9
parentbfda22ef1a3451a9d5f2523a10d26997783de7d7
menu: New macro #usergnusteppath# for user GNUstep directory

This macro is used when handling directories with OPEN_MENU, e.g., to list
available image files for setting the workspace background.

When parsing a menu file, we replace any instances of #usergnusteppath#
with either GNUSTEP_USER_ROOT or ~/GNUstep if the former is not set.  In
this way, authors of menu files do not have to worry about whether users
will have this variable set or not.

We also document this feature in WindowMaker/menu.in, which generates the
default English language old-style menu and currently contains the existing
documentation for the Window Maker menu system.
WindowMaker/menu.in
src/rootmenu.c