mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-10 10:35:46 +01:00
menu: Write data directory during build instead of with wmaker.inst.
Many of the menu files contain the macro #wmdatadir# as a placeholder for the data directory containing Window Maker themes, styles, background pixmaps, etc. This macro is replaced by the the actual path to the data directory (by default /usr/local/share/WindowMaker) by the wmaker.inst script, but only when copying WMRootMenu to the user's home directory. Instead, we replace the macro during the build. This way, *every* menu file has the correct path. Note that several of the files in question were not previously generated during build. These have been renamed with a .in extension.
This commit is contained in:
committed by
Carlos R. Mafra
parent
273d17a0be
commit
d364afff02
72
WindowMaker/wmmacros.in
Normal file
72
WindowMaker/wmmacros.in
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Some generic macros for WindowMaker configuration files
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef WMMACROS_
|
||||
#define WMMACROS_
|
||||
|
||||
#define HAVE_XLESS
|
||||
|
||||
/*
|
||||
* WS_BACK - sets the root background texture to VAL
|
||||
*/
|
||||
#define WS_BACK EXEC wdwrite WindowMaker WorkspaceBack
|
||||
|
||||
/*
|
||||
* CLEARROOT - set the root background to nothing
|
||||
*/
|
||||
#define CLEARROOT xsetroot
|
||||
|
||||
|
||||
/*
|
||||
* SETSTYLE FILE - loads a style file
|
||||
*/
|
||||
#define SETSTYLE EXEC cd $HOME/GNUstep/Library/WindowMaker/Styles; setstyle
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* MANUAL_SEARCH(ITEM) - search manual page for ITEM
|
||||
*
|
||||
* You might need to change this according to what's the exit status of your
|
||||
* man(1). This is for the one that comes with Linux (RedHat)
|
||||
*/
|
||||
#ifdef HAVE_XLESS
|
||||
#define MANUAL_SEARCH(ITEM) \
|
||||
if ( man ITEM > /dev/null ); then \
|
||||
man ITEM | xless;\
|
||||
else \
|
||||
xmessage -center -title "Manual Browser" \
|
||||
Sorry, but there is no manual page \
|
||||
entry for ITEM...;\
|
||||
fi
|
||||
#else
|
||||
#define MANUAL_SEARCH(ITEM) \
|
||||
if ( man ITEM > /dev/null ); then \
|
||||
xterm -e man ITEM; \
|
||||
else \
|
||||
xmessage -center -title "Manual Browser" \
|
||||
Sorry, but there is no manual page \
|
||||
entry for ITEM...;\
|
||||
fi
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Paths to system configuration directories
|
||||
*/
|
||||
#define THEMES_DIR #wmdatadir#/Themes
|
||||
#define STYLES_DIR #wmdatadir#/Styles
|
||||
#define ICON_SETS_DIR #wmdatadir#/IconSets
|
||||
#define BACKGROUNDS_DIR #wmdatadir#/Backgrounds
|
||||
|
||||
|
||||
#define StaticGray 0
|
||||
#define GrayScale 1
|
||||
#define StaticColor 2
|
||||
#define PseudoColor 3
|
||||
#define TrueColor 4
|
||||
#define DirectColor 5
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user