divert(-1) # AnotherLevel - A FVWM2 Configuration # Copyright (C) 1996, 1997 Red Hat Software, Inc # # $Id: fvwm2rc.apps.m4,v 1.2 1998/05/01 23:57:15 gafton Exp $ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # This work is derived from: # TheNextLevel # Copyright 1996 By Greg J. Badros # distributed under GNU General Public License. # # # Applications already on HDD # #IfProgramExists(`netscape', `define(`HAVEAPP_NETSCAPE')') #IfElseProgramExists(`applix', `define(`HAVEAPP_APPLIXWARE_1')', # `syscmd(`test -f /opt/bin/applix')dnl # ifelse(sysval,0,`define(`HAVEAPP_APPLIXWARE_2')',`')' #) # this is ugly, but it is parseable by the human eye... #ifdef(`HAVEAPP_NETSCAPE', `define(`NEED_APPS_MENU')') #ifdef(`HAVEAPP_APPLIXWARE_1', `define(`NEED_APPS_MENU')') #ifdef(`HAVEAPP_APPLIXWARE_2', `define(`NEED_APPS_MENU')') divert divert(-1) # We define the menu... #AddToMenu _anotherlevel_APPLICATIONS "Applications MiniTitleIcon(folder)" Title #ifdef(`HAVEAPP_NETSCAPE', `+ "Netscape Navigator MiniTitleIcon(netscape)" Exec netscape &') #ifdef(`HAVEAPP_APPLIXWARE_1', `+ "Applixware MiniTitleIcon(font)" Exec applix &') #ifdef(`HAVEAPP_APPLIXWARE_2', `+ "Applixware MiniTitleIcon(font)" Exec /opt/bin/applix &') # and we look to see if we need this menu... #ifdef(`NEED_APPS_MENU', ` #AddToMenu StartMenu "Applications MiniTitleIcon(folder)" Popup _anotherlevel_APPLICATIONS #') divert