2 # A workaround script so that the rpm can install or not
3 # the fvwm themes Debian menu system stuff
6 MY_CWD
=/usr
/share
/fvwm
/menu-system
7 MM_CONF_DIR
=/etc
/menu-methods
8 WM_SESSION_DIR
=/etc
/X11
/wmsession.d
9 FILES
="fvwm_themes.h fvwm_themes fvwm_themes_data.h"
11 if test ! -d $MY_CWD; then
17 if test ! -d /etc
/menu-methods
-o ! -x /usr
/bin
/update-menus
; then
21 if test "x$DO" = "xInstall"; then
24 cp -f rpm-wa
/$f $MM_CONF_DIR/
27 chmod +x
$MM_CONF_DIR/fvwm_themes
30 elif test "x$DO" = "xUninstall"; then
38 # take the occasion to handle the wmsession.d directory
39 if test ! -d $WM_SESSION_DIR; then
43 if test "x$DO" = "xInstall"; then
44 echo "NAME=fvwm-themes
46 EXEC=/usr/bin/fvwm-themes-start
48 if test -x $HOME/.xinitrc-fvwm; then
51 exec fvwm-themes-start"> $WM_SESSION_DIR/fvwm-themes
52 [ -x /usr
/sbin
/fndSession
] && /usr
/sbin
/fndSession || true
53 elif test "x$DO" = "xUninstall"; then
54 rm -f $WM_SESSION_DIR/fvwm-themes
55 [ -x /usr
/sbin
/fndSession
] && /usr
/sbin
/fndSession || true