a few little compatibility fixes (for old sh's and systems), plus Han
untabified it. Also some slight corrections to output messages.
This commit is contained in:
parent
271df70e9b
commit
a0611c9727
1 changed files with 295 additions and 278 deletions
|
@ -16,13 +16,13 @@
|
||||||
#
|
#
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
# DEALINGS IN THE SOFTWARE.
|
# DEALINGS IN THE SOFTWARE.
|
||||||
#
|
#
|
||||||
# $Id: fluxbox-generate_menu,v 1.12 2002/11/17 17:36:50 fluxgen Exp $
|
# $Id: fluxbox-generate_menu,v 1.13 2002/11/19 06:21:45 rathnor Exp $
|
||||||
|
|
||||||
[ `id -u` -eq 0 ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin
|
[ `id -u` -eq 0 ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin
|
||||||
|
|
||||||
|
@ -30,26 +30,28 @@
|
||||||
display_usage() {
|
display_usage() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
||||||
fluxbox-genrate_menu
|
Usage: fluxbox-generate_menu [-kgr] [-t terminal] [-w browser]
|
||||||
Usage: fluxbox-generate_menu [-kg] [-o /path]
|
[-m menu-title] [-p /path] [-n /path] [-q /path] [-o /path]
|
||||||
[-p /path] [-m menu-title]
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
-t Favourite terminal
|
-k Insert a kde menu
|
||||||
-b Favourite browser
|
-g Add a gnome menu
|
||||||
-k Insert a kde menu
|
-m Menu-title; default is "Fluxbox"
|
||||||
-g Add a gnome menu
|
|
||||||
-o Outputfile; default is ~/.fluxbox/menu
|
|
||||||
-m Menu-title; default is "Fluxbox"
|
|
||||||
-r Don't remove empty menu-entries; Better for templates.
|
-r Don't remove empty menu-entries; Better for templates.
|
||||||
-h Display this help
|
-o Outputfile; default is ~/.fluxbox/menu
|
||||||
-a Display the authors of this script
|
-t Favourite terminal
|
||||||
|
-b Favourite browser
|
||||||
|
-w Homepage for console-browsers. Default is fluxbox.org.
|
||||||
|
|
||||||
|
-h Display this help
|
||||||
|
-a Display the authors of this script
|
||||||
|
|
||||||
|
|
||||||
Only for packagers:
|
Only for packagers:
|
||||||
|
|
||||||
-p Package-datadir; default is /usr/share
|
-p Package-datadir; default is /usr/share
|
||||||
-n Gnome-datadir; default is Package-datadir
|
-n Gnome-datadir; default is Package-datadir
|
||||||
-q KDE-datadir; default is Package-datadir
|
-q KDE-datadir; default is Package-datadir
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
@ -58,8 +60,7 @@ display_help() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
||||||
This program generates a menu-file for fluxbox.
|
This program generates a menu-file for fluxbox.
|
||||||
Use fluxbox-generate_menu -h for brief usage instructions
|
Use fluxbox-generate_menu -h for brief usage instructions.
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,18 +70,28 @@ WHOAMI=`whoami`
|
||||||
|
|
||||||
fluxbox-generate_menu was brought to you by:
|
fluxbox-generate_menu was brought to you by:
|
||||||
|
|
||||||
Henrik Kinnunnen: Project leader.
|
Henrik Kinnunnen: Project leader.
|
||||||
Han Boetes: Packaging, debugging and scripts.
|
Han Boetes: Packaging, debugging and scripts.
|
||||||
Jeramy B. Smith: Packaging assistance, gnome and kde menu system.
|
Jeramy B. Smith: Packaging assistance, gnome and kde menu system.
|
||||||
Xyrnix: Mysterious guest developer who made find_it module.
|
Xyrnix: Mysterious guest developer who made find_it module.
|
||||||
Filippo Pappalardo: Italian locales and -t option.
|
Filippo Pappalardo: Italian locales and -t option.
|
||||||
$WHOAMI: Innocent bystander.
|
$WHOAMI: Innocent bystander.
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
find_it() {
|
find_it() {
|
||||||
which $1 > /dev/null 2> /dev/null && shift && $*
|
if [ -z "$1" ]; then
|
||||||
|
# echo "Nothing found"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
which $1 > /dev/null 2> /dev/null
|
||||||
|
found=$?
|
||||||
|
if [ $found -eq 0 -a $# -gt 1 ]; then
|
||||||
|
shift
|
||||||
|
$*
|
||||||
|
fi
|
||||||
|
return $found
|
||||||
}
|
}
|
||||||
|
|
||||||
append() {
|
append() {
|
||||||
|
@ -93,37 +104,37 @@ append_menu() {
|
||||||
|
|
||||||
append_submenu() {
|
append_submenu() {
|
||||||
# only an empty line in templates
|
# only an empty line in templates
|
||||||
[ ${REMOVE} ] && echo >> ${FILENAME}
|
[ "${REMOVE}" ] && echo >> ${FILENAME}
|
||||||
append_menu "[submenu] ($1)"
|
append_menu "[submenu] ($1)"
|
||||||
}
|
}
|
||||||
|
|
||||||
append_menu_end() {
|
append_menu_end() {
|
||||||
append_menu "[end]"
|
append_menu "[end]"
|
||||||
# only an empty line in templates
|
# only an empty line in templates
|
||||||
[ ${REMOVE} ] && echo >> ${FILENAME}
|
[ "${REMOVE}" ] && echo >> ${FILENAME}
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_entry() {
|
menu_entry() {
|
||||||
append "[exec] ("`grep -v GenericName $* | grep Name= | cut -d = -f 2`") \
|
append "[exec] ("`grep -v GenericName $* | grep Name= | cut -d = -f 2`") \
|
||||||
{"`grep -v TryExec $* | grep Exec= | cut -d = -f 2`"}"
|
{"`grep -v TryExec $* | grep Exec= | cut -d = -f 2`"}"
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_entry_dircheck() {
|
menu_entry_dircheck() {
|
||||||
if [ -d "$*" ]; then
|
if [ -d "$*" ]; then
|
||||||
menu_entry_dir "$*"
|
menu_entry_dir "$*"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_entry_dir() {
|
menu_entry_dir() {
|
||||||
for b in `ls "$*"/*.desktop 2>/dev/null `; do
|
for b in `ls "$*"/*.desktop 2>/dev/null `; do
|
||||||
menu_entry "${b}"
|
menu_entry "${b}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
normal_find() {
|
normal_find() {
|
||||||
while [ $1 ]; do
|
while [ "$1" ]; do
|
||||||
find_it $1 append "[exec] ($1) {$1}"
|
find_it $1 append "[exec] ($1) {$1}"
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,52 +148,58 @@ mv -f ${FILENAME}.tmp ${FILENAME}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get options.
|
# Get options.
|
||||||
while getopts ":khragb:t:p:n:q:o:m:" COMMAND_LINE_ARGUMENT ; do
|
while getopts ":khragb:t:p:w:n:q:o:m:" COMMAND_LINE_ARGUMENT ; do
|
||||||
case "${COMMAND_LINE_ARGUMENT}" in
|
case "${COMMAND_LINE_ARGUMENT}" in
|
||||||
k) KDEMENU=yes ;;
|
k) KDEMENU=yes ;;
|
||||||
g) GNOMEMENU=yes ;;
|
g) GNOMEMENU=yes ;;
|
||||||
t) MY_TERM=${OPTARG};;
|
t) MY_TERM=${OPTARG};;
|
||||||
b) MY_BROWSER=${OPTARG};;
|
b) MY_BROWSER=${OPTARG};;
|
||||||
o) FILENAME=${OPTARG} ;;
|
o) FILENAME=${OPTARG} ;;
|
||||||
p) PKGDATADIR=${OPTARG} ;;
|
p) PKGDATADIR=${OPTARG} ;;
|
||||||
n) GPKGDATADIR=${OPTARG} ;;
|
n) GPKGDATADIR=${OPTARG} ;;
|
||||||
q) KPKGDATADIR=${OPTARG} ;;
|
q) KPKGDATADIR=${OPTARG} ;;
|
||||||
m) MENUTITLE=${OPTARG} ;;
|
m) MENUTITLE=${OPTARG} ;;
|
||||||
r) REMOVE=no ;;
|
w) HOMEPAGE=${OPTARG} ;;
|
||||||
h) display_usage ; exit 0 ;;
|
r) REMOVE=no ;;
|
||||||
a) display_authors ; exit 0 ;;
|
h) display_usage ; exit 0 ;;
|
||||||
*) display_help ; exit 1 ;;
|
a) display_authors ; exit 0 ;;
|
||||||
esac
|
*) display_help ; exit 1 ;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# Set Defaults
|
# Set Defaults
|
||||||
|
|
||||||
# menufile name
|
# menufile name
|
||||||
if [ -z ${FILENAME} ]; then
|
if [ -z "${FILENAME}" ]; then
|
||||||
FILENAME=${HOME}/.fluxbox/menu
|
FILENAME=${HOME}/.fluxbox/menu
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Can we actually create ${FILENAME}
|
# Can we actually create ${FILENAME}
|
||||||
if ! touch ${FILENAME}; then
|
touch ${FILENAME} 2> /dev/null
|
||||||
echo "Fatal error: can't create $FILENAME" >/dev/stderr
|
if [ $? -ne 0 ] ; then
|
||||||
|
echo "Fatal error: can't create $FILENAME" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# backup menu
|
# backup menu
|
||||||
if [ -w ${FILENAME} ]; then
|
if [ -w "${FILENAME}" ]; then
|
||||||
if [ -f ${FILENAME}.firstbak ];then
|
if [ -f ${FILENAME}.firstbak ];then
|
||||||
cp ${FILENAME} ${FILENAME}.firstbak
|
cp ${FILENAME} ${FILENAME}.firstbak
|
||||||
fi
|
fi
|
||||||
mv ${FILENAME} ${FILENAME}.bak
|
mv ${FILENAME} ${FILENAME}.bak
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# default homepage for console-browsers
|
||||||
|
HOMEPAGE=${HOMEPAGE:=fluxbox.org}
|
||||||
|
|
||||||
#packagedatadir
|
#packagedatadir
|
||||||
|
|
||||||
if [ ! -d "${PKGDATADIR}" -o "${PKGDATADIR}" = "" ]; then
|
if [ ! -d "${PKGDATADIR}" -o "${PKGDATADIR}" = "" ]; then
|
||||||
if [ `uname` = "Linux" ];then
|
if [ "`uname`" = "Linux" ];then
|
||||||
PKGDATADIR=/usr/share
|
PKGDATADIR=/usr/share
|
||||||
else
|
else
|
||||||
PKGDATADIR=/usr/local/share
|
PKGDATADIR=/usr/local/share
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -204,13 +221,13 @@ fi
|
||||||
# find the default terminal
|
# find the default terminal
|
||||||
find_it $MY_TERM
|
find_it $MY_TERM
|
||||||
if [ $? -ne 0 ];then
|
if [ $? -ne 0 ];then
|
||||||
[ -n "$MY_TERM" ] && echo "Warning: you choose an invalid term." > /dev/stderr
|
[ -n "$MY_TERM" ] && echo "Warning: you choose an invalid term." >&2
|
||||||
#The precise order is up for debate.
|
#The precise order is up for debate.
|
||||||
for term in Eterm aterm rxvt wterm xterm konsole gnome-terminal; do
|
for term in Eterm aterm rxvt wterm xterm konsole gnome-terminal; do
|
||||||
if find_it $term; then
|
if find_it $term; then
|
||||||
DEFAULT_TERM=$term
|
DEFAULT_TERM=$term
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
DEFAULT_TERM=$MY_TERM
|
DEFAULT_TERM=$MY_TERM
|
||||||
|
@ -220,13 +237,13 @@ fi
|
||||||
# find the default browser
|
# find the default browser
|
||||||
find_it $MY_BROWSER
|
find_it $MY_BROWSER
|
||||||
if [ $? -ne 0 ];then
|
if [ $? -ne 0 ];then
|
||||||
[ -n "$MY_BROWSER" ] && echo "Warning: you choose an invalid browser." > /dev/stderr
|
[ -n "$MY_BROWSER" ] && echo "Warning: you choose an invalid browser." >&2
|
||||||
#The precise order is up for debate.
|
#The precise order is up for debate.
|
||||||
for browser in opera phoenix mozilla galeon konqueror dillo netscape links w3m lynx; do
|
for browser in opera phoenix mozilla galeon konqueror dillo netscape links w3m lynx; do
|
||||||
if find_it $browser; then
|
if find_it $browser; then
|
||||||
DEFAULT_BROWSER=$browser
|
DEFAULT_BROWSER=$browser
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
DEFAULT_BROWSER=$MY_BROWSER
|
DEFAULT_BROWSER=$MY_BROWSER
|
||||||
|
@ -235,7 +252,7 @@ fi
|
||||||
|
|
||||||
# a unix system without any terms. that's odd
|
# a unix system without any terms. that's odd
|
||||||
if [ -z "$DEFAULT_TERM" ];then
|
if [ -z "$DEFAULT_TERM" ];then
|
||||||
cat <<EOF>/dev/stderr
|
cat <<EOF>&2
|
||||||
Error: I can't find any terminal-emulators in your path.
|
Error: I can't find any terminal-emulators in your path.
|
||||||
Please specify your favourite terminal with the -t option.
|
Please specify your favourite terminal with the -t option.
|
||||||
EOF
|
EOF
|
||||||
|
@ -268,156 +285,156 @@ XUTILSMENU="X-utils"
|
||||||
|
|
||||||
# Check translation
|
# Check translation
|
||||||
case ${LC_ALL} in
|
case ${LC_ALL} in
|
||||||
ru_RU) #Russian locales
|
ru_RU) #Russian locales
|
||||||
#OFFICEMENU="Office"
|
#OFFICEMENU="Office"
|
||||||
BROWSERMENU="âÒÁÕÚÅÒÙ"
|
BROWSERMENU="âÒÁÕÚÅÒÙ"
|
||||||
CONFIGUREMENU="îÁÓÔÒÏÊËÁ"
|
CONFIGUREMENU="îÁÓÔÒÏÊËÁ"
|
||||||
EDITORMENU="òÅÄÁËÔÏÒÙ"
|
EDITORMENU="òÅÄÁËÔÏÒÙ"
|
||||||
EXITITEM="÷ÙÊÔÉ"
|
EXITITEM="÷ÙÊÔÉ"
|
||||||
FBSETTINGSMENU="FB-ÎÁÓÔÒÏÊËÉ"
|
FBSETTINGSMENU="FB-ÎÁÓÔÒÏÊËÉ"
|
||||||
GNOMEMENUTEXT="Gnome-ÍÅÎÀ"
|
GNOMEMENUTEXT="Gnome-ÍÅÎÀ"
|
||||||
GRAPHICMENU="çÒÁÆÉËÁ"
|
GRAPHICMENU="çÒÁÆÉËÁ"
|
||||||
KDEMENUTEXT="KDE-ÍÅÎÀ"
|
KDEMENUTEXT="KDE-ÍÅÎÀ"
|
||||||
MISCMENU="ðÒÏÞÅÅ"
|
MISCMENU="ðÒÏÞÅÅ"
|
||||||
MUSICMENU="ú×ÕË"
|
MUSICMENU="ú×ÕË"
|
||||||
NETMENU="óÅÔØ"
|
NETMENU="óÅÔØ"
|
||||||
RELOADITEM="ðÅÒÅÎÁÓÔÒÏÉÔØ"
|
RELOADITEM="ðÅÒÅÎÁÓÔÒÏÉÔØ"
|
||||||
RESTARTITEM="ðÅÒÅÚÁÐÕÓÔÉÔØ"
|
RESTARTITEM="ðÅÒÅÚÁÐÕÓÔÉÔØ"
|
||||||
STYLEMENU="óÔÉÌÉ"
|
STYLEMENU="óÔÉÌÉ"
|
||||||
STYLEMENUTITLE="÷ÙÂÅÒÉÔÅ ÓÔÉÌØ"
|
STYLEMENUTITLE="÷ÙÂÅÒÉÔÅ ÓÔÉÌØ"
|
||||||
TERMINALMENU="ôÅÒÍÉÎÁÌÙ"
|
TERMINALMENU="ôÅÒÍÉÎÁÌÙ"
|
||||||
WORKSPACEMENU="òÁÂÏÞÉÅ ÐÒÏÓÔÒÁÎÓÔ×Á"
|
WORKSPACEMENU="òÁÂÏÞÉÅ ÐÒÏÓÔÒÁÎÓÔ×Á"
|
||||||
XUTILSMENU="X-ÕÔÉÌÉÔÙ"
|
XUTILSMENU="X-ÕÔÉÌÉÔÙ"
|
||||||
;;
|
;;
|
||||||
sv_SE) #Swedish locales
|
sv_SE) #Swedish locales
|
||||||
#OFFICEMENU="Office"
|
#OFFICEMENU="Office"
|
||||||
BROWSERMENU="Browsers"
|
BROWSERMENU="Browsers"
|
||||||
CONFIGUREMENU="Konfiguration"
|
CONFIGUREMENU="Konfiguration"
|
||||||
EDITORMENU="Editorer"
|
EDITORMENU="Editorer"
|
||||||
EXITITEM="Exit"
|
EXITITEM="Exit"
|
||||||
FBSETTINGSMENU="FB-inställningar"
|
FBSETTINGSMENU="FB-inställningar"
|
||||||
GNOMEMENUTEXT="Gnome-menyer"
|
GNOMEMENUTEXT="Gnome-menyer"
|
||||||
GRAPHICMENU="Grafik"
|
GRAPHICMENU="Grafik"
|
||||||
KDEMENUTEXT="KDE-menyer"
|
KDEMENUTEXT="KDE-menyer"
|
||||||
MISCMENU="Blandat"
|
MISCMENU="Blandat"
|
||||||
MUSICMENU="Musik"
|
MUSICMENU="Musik"
|
||||||
NETMENU="Net"
|
NETMENU="Net"
|
||||||
RELOADITEM="Ladda om konfig"
|
RELOADITEM="Ladda om konfig"
|
||||||
RESTARTITEM="Starta om"
|
RESTARTITEM="Starta om"
|
||||||
STYLEMENU="Stiler"
|
STYLEMENU="Stiler"
|
||||||
STYLEMENUTITLE="Välj en stil"
|
STYLEMENUTITLE="Välj en stil"
|
||||||
TERMINALMENU="Terminaler"
|
TERMINALMENU="Terminaler"
|
||||||
WORKSPACEMENU="Arbetsytor"
|
WORKSPACEMENU="Arbetsytor"
|
||||||
XUTILSMENU="X-program"
|
XUTILSMENU="X-program"
|
||||||
;;
|
;;
|
||||||
nl_NL) #Nederlandse locales
|
nl_NL) #Nederlandse locales
|
||||||
#OFFICEMENU="Office"
|
#OFFICEMENU="Office"
|
||||||
BROWSERMENU="Browsers"
|
BROWSERMENU="Browsers"
|
||||||
CONFIGUREMENU="Instellingen"
|
CONFIGUREMENU="Instellingen"
|
||||||
EDITORMENU="Editors"
|
EDITORMENU="Editors"
|
||||||
EXITITEM="Afsluiten"
|
EXITITEM="Afsluiten"
|
||||||
FBSETTINGSMENU="FB-Instellingen"
|
FBSETTINGSMENU="FB-Instellingen"
|
||||||
GNOMEMENUTEXT="Gnome-menu"
|
GNOMEMENUTEXT="Gnome-menu"
|
||||||
GRAPHICMENU="Grafisch"
|
GRAPHICMENU="Grafisch"
|
||||||
KDEMENUTEXT="KDE-menu"
|
KDEMENUTEXT="KDE-menu"
|
||||||
MISCMENU="Onregelmatig"
|
MISCMENU="Onregelmatig"
|
||||||
MUSICMENU="Muziek"
|
MUSICMENU="Muziek"
|
||||||
NETMENU="Net"
|
NETMENU="Net"
|
||||||
RELOADITEM="Vernieuwen"
|
RELOADITEM="Vernieuwen"
|
||||||
RESTARTITEM="Restart"
|
RESTARTITEM="Restart"
|
||||||
STYLEMENU="Stylen"
|
STYLEMENU="Stylen"
|
||||||
STYLEMENUTITLE="Kies een styl..."
|
STYLEMENUTITLE="Kies een styl..."
|
||||||
TERMINALMENU="Terminals"
|
TERMINALMENU="Terminals"
|
||||||
WORKSPACEMENU="Werkveld Lijst"
|
WORKSPACEMENU="Werkveld Lijst"
|
||||||
XUTILSMENU="X-utils"
|
XUTILSMENU="X-utils"
|
||||||
;;
|
;;
|
||||||
fi_FI) #Finnish locales
|
fi_FI) #Finnish locales
|
||||||
#OFFICEMENU="Office"
|
#OFFICEMENU="Office"
|
||||||
BROWSERMENU="Selaimet"
|
BROWSERMENU="Selaimet"
|
||||||
CONFIGUREMENU="Konfigurointi"
|
CONFIGUREMENU="Konfigurointi"
|
||||||
EDITORMENU="Editorit"
|
EDITORMENU="Editorit"
|
||||||
EXITITEM="Lopeta"
|
EXITITEM="Lopeta"
|
||||||
FBSETTINGSMENU="FB:n Asetukset"
|
FBSETTINGSMENU="FB:n Asetukset"
|
||||||
GNOMEMENUTEXT="Gnomen valikot"
|
GNOMEMENUTEXT="Gnomen valikot"
|
||||||
GRAPHICMENU="Grafiikka"
|
GRAPHICMENU="Grafiikka"
|
||||||
KDEMENUTEXT="KDE:n valikot"
|
KDEMENUTEXT="KDE:n valikot"
|
||||||
MISCMENU="Sekalaista"
|
MISCMENU="Sekalaista"
|
||||||
MUSICMENU="Musikki"
|
MUSICMENU="Musikki"
|
||||||
NETMENU="Verkko"
|
NETMENU="Verkko"
|
||||||
RELOADITEM="Päivitä"
|
RELOADITEM="Päivitä"
|
||||||
RESTARTITEM="Käynnistä uudelleen"
|
RESTARTITEM="Käynnistä uudelleen"
|
||||||
STYLEMENU="Tyylit"
|
STYLEMENU="Tyylit"
|
||||||
STYLEMENUTITLE="Valitse tyyli"
|
STYLEMENUTITLE="Valitse tyyli"
|
||||||
TERMINALMENU="Terminaalit"
|
TERMINALMENU="Terminaalit"
|
||||||
WORKSPACEMENU="Työaluet"
|
WORKSPACEMENU="Työaluet"
|
||||||
XUTILSMENU="X-Ohjelmat"
|
XUTILSMENU="X-Ohjelmat"
|
||||||
;;
|
;;
|
||||||
ja_JP) #Japanese locales
|
ja_JP) #Japanese locales
|
||||||
#OFFICEMENU="Office"
|
#OFFICEMENU="Office"
|
||||||
BROWSERMENU="¥Ö¥é¥¦¥¶"
|
BROWSERMENU="¥Ö¥é¥¦¥¶"
|
||||||
CONFIGUREMENU="ÀßÄê"
|
CONFIGUREMENU="ÀßÄê"
|
||||||
EDITORMENU="¥¨¥Ç¥£¥¿"
|
EDITORMENU="¥¨¥Ç¥£¥¿"
|
||||||
EXITITEM="½ªÎ»"
|
EXITITEM="½ªÎ»"
|
||||||
FBSETTINGSMENU="FluxboxÀßÄê"
|
FBSETTINGSMENU="FluxboxÀßÄê"
|
||||||
GNOMEMENUTEXT="Gnome¥á¥Ë¥å¡¼"
|
GNOMEMENUTEXT="Gnome¥á¥Ë¥å¡¼"
|
||||||
GRAPHICMENU="²èÁü"
|
GRAPHICMENU="²èÁü"
|
||||||
KDEMENUTEXT="KDE¥á¥Ë¥å¡¼"
|
KDEMENUTEXT="KDE¥á¥Ë¥å¡¼"
|
||||||
MISCMENU="¤¤¤í¤¤¤í"
|
MISCMENU="¤¤¤í¤¤¤í"
|
||||||
MUSICMENU="²»³Ú"
|
MUSICMENU="²»³Ú"
|
||||||
NETMENU="¥Í¥Ã¥È¥ï¡¼¥¯"
|
NETMENU="¥Í¥Ã¥È¥ï¡¼¥¯"
|
||||||
RELOADITEM="ºÆÆɤ߹þ¤ß"
|
RELOADITEM="ºÆÆɤ߹þ¤ß"
|
||||||
RESTARTITEM="ºÆµ¯Æ°"
|
RESTARTITEM="ºÆµ¯Æ°"
|
||||||
STYLEMENU="¥¹¥¿¥¤¥ë"
|
STYLEMENU="¥¹¥¿¥¤¥ë"
|
||||||
STYLEMENUTITLE="¥¹¥¿¥¤¥ëÁªÂò..."
|
STYLEMENUTITLE="¥¹¥¿¥¤¥ëÁªÂò..."
|
||||||
TERMINALMENU="¥¿¡¼¥ß¥Ê¥ë"
|
TERMINALMENU="¥¿¡¼¥ß¥Ê¥ë"
|
||||||
WORKSPACEMENU="¥ï¡¼¥¯¥¹¥Ú¡¼¥¹"
|
WORKSPACEMENU="¥ï¡¼¥¯¥¹¥Ú¡¼¥¹"
|
||||||
XUTILSMENU="X¥æ¡¼¥Æ¥£¥ê¥Æ¥£"
|
XUTILSMENU="X¥æ¡¼¥Æ¥£¥ê¥Æ¥£"
|
||||||
;;
|
;;
|
||||||
fr_FR) # french locales
|
fr_FR) # french locales
|
||||||
#OFFICEMENU="Office"
|
#OFFICEMENU="Office"
|
||||||
BROWSERMENU="Navigateurs"
|
BROWSERMENU="Navigateurs"
|
||||||
CONFIGUREMENU="Configurer"
|
CONFIGUREMENU="Configurer"
|
||||||
EDITORMENU="Editeurs"
|
EDITORMENU="Editeurs"
|
||||||
EXITITEM="Sortir"
|
EXITITEM="Sortir"
|
||||||
FBSETTINGSMENU="FB-Settings"
|
FBSETTINGSMENU="FB-Settings"
|
||||||
GNOMEMENUTEXT="menus-Gnome"
|
GNOMEMENUTEXT="menus-Gnome"
|
||||||
GRAPHICMENU="Graphisme"
|
GRAPHICMENU="Graphisme"
|
||||||
KDEMENUTEXT="menus-KDE"
|
KDEMENUTEXT="menus-KDE"
|
||||||
MISCMENU="Misc"
|
MISCMENU="Misc"
|
||||||
MUSICMENU="Musique"
|
MUSICMENU="Musique"
|
||||||
NETMENU="Net"
|
NETMENU="Net"
|
||||||
RELOADITEM="Recharger config"
|
RELOADITEM="Recharger config"
|
||||||
RESTARTITEM="Redémarrer"
|
RESTARTITEM="Redémarrer"
|
||||||
STYLEMENU="Styles"
|
STYLEMENU="Styles"
|
||||||
STYLEMENUTITLE="Choisir un style..."
|
STYLEMENUTITLE="Choisir un style..."
|
||||||
TERMINALMENU="Terminaux"
|
TERMINALMENU="Terminaux"
|
||||||
WORKSPACEMENU="Liste des bureaux"
|
WORKSPACEMENU="Liste des bureaux"
|
||||||
XUTILSMENU="X-utils"
|
XUTILSMENU="X-utils"
|
||||||
;;
|
;;
|
||||||
it_IT|it_IT@euro) # italian locales
|
it_IT|it_IT@euro) # italian locales
|
||||||
#OFFICEMENU="Office"
|
#OFFICEMENU="Office"
|
||||||
BROWSERMENU="Browsers"
|
BROWSERMENU="Browsers"
|
||||||
CONFIGUREMENU="Configurazione"
|
CONFIGUREMENU="Configurazione"
|
||||||
EDITORMENU="Editori"
|
EDITORMENU="Editori"
|
||||||
EXITITEM="Esci"
|
EXITITEM="Esci"
|
||||||
FBSETTINGSMENU="Preferenze"
|
FBSETTINGSMENU="Preferenze"
|
||||||
GAMESMENU="Giochi"
|
GAMESMENU="Giochi"
|
||||||
GNOMEMENUTEXT="Gnome"
|
GNOMEMENUTEXT="Gnome"
|
||||||
GRAPHICMENU="Grafica"
|
GRAPHICMENU="Grafica"
|
||||||
KDEMENUTEXT="KDE"
|
KDEMENUTEXT="KDE"
|
||||||
MISCMENU="Varie"
|
MISCMENU="Varie"
|
||||||
MUSICMENU="Musica"
|
MUSICMENU="Musica"
|
||||||
NETMENU="Internet"
|
NETMENU="Internet"
|
||||||
RELOADITEM="Rileggi la configurazione"
|
RELOADITEM="Rileggi la configurazione"
|
||||||
RESTARTITEM="Riavvia"
|
RESTARTITEM="Riavvia"
|
||||||
STYLEMENU="Scegli uno stile..."
|
STYLEMENU="Scegli uno stile..."
|
||||||
STYLEMENUTITLE="Scegli uno stile..."
|
STYLEMENUTITLE="Scegli uno stile..."
|
||||||
TERMINALMENU="Terminali"
|
TERMINALMENU="Terminali"
|
||||||
WORKSPACEMENU="Aree di lavoro"
|
WORKSPACEMENU="Aree di lavoro"
|
||||||
XUTILSMENU="X-utils"
|
XUTILSMENU="X-utils"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Start of menu
|
# Start of menu
|
||||||
|
@ -425,16 +442,16 @@ esac
|
||||||
echo "[begin] (${MENUTITLE})" > ${FILENAME}
|
echo "[begin] (${MENUTITLE})" > ${FILENAME}
|
||||||
|
|
||||||
|
|
||||||
append "[exec] (${DEFAULT_TERM}) {${DEFAULT_TERM}}"
|
append "[exec] (${DEFAULT_TERM}) {${DEFAULT_TERM}}"
|
||||||
|
|
||||||
case "$DEFAULT_BROWSER" in
|
case "$DEFAULT_BROWSER" in
|
||||||
links|w3m|lynx) append "[exec] (${DEFAULT_BROWSER}) {${DEFAULT_TERM} -e ${DEFAULT_BROWSER} fluxbox.org}" ;;
|
links|w3m|lynx) append "[exec] (${DEFAULT_BROWSER}) {${DEFAULT_TERM} -e ${DEFAULT_BROWSER} ${HOMEPAGE}}" ;;
|
||||||
mozilla|phoenix|galeon|dillo|netscape) append "[exec] (${DEFAULT_BROWSER}) {${DEFAULT_BROWSER}}" ;;
|
mozilla|phoenix|galeon|dillo|netscape) append "[exec] (${DEFAULT_BROWSER}) {${DEFAULT_BROWSER}}" ;;
|
||||||
konqueror) append "[exec] (konqueror) {kfmclient openProfile webbrowsing}" ;;
|
konqueror) append "[exec] (konqueror) {kfmclient openProfile webbrowsing}" ;;
|
||||||
opera) append "[exec] (opera) {env QT_XFT=true opera}" ;;
|
opera) append "[exec] (opera) {env QT_XFT=true opera}" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
find_it fbrun append "[exec] (Run) {fbrun}"
|
find_it fbrun append "[exec] (Run) {fbrun}"
|
||||||
|
|
||||||
|
|
||||||
append_submenu ${TERMINALMENU}
|
append_submenu ${TERMINALMENU}
|
||||||
|
@ -445,30 +462,30 @@ append_menu_end
|
||||||
append_submenu ${NETMENU}
|
append_submenu ${NETMENU}
|
||||||
append_submenu ${BROWSERMENU}
|
append_submenu ${BROWSERMENU}
|
||||||
normal_find netscape galeon mozilla dillo
|
normal_find netscape galeon mozilla dillo
|
||||||
find_it opera append "[exec] (opera) {env QT_XFT=true opera}"
|
find_it opera append "[exec] (opera) {env QT_XFT=true opera}"
|
||||||
find_it konqueror append "[exec] (konqueror) {kfmclient openProfile webbrowsing}"
|
find_it konqueror append "[exec] (konqueror) {kfmclient openProfile webbrowsing}"
|
||||||
find_it links append "[exec] (links) {${DEFAULT_TERM} -e links fluxbox.org}"
|
find_it links append "[exec] (links) {${DEFAULT_TERM} -e links ${HOMEPAGE}}"
|
||||||
find_it w3m append "[exec] (w3m) {${DEFAULT_TERM} -e w3m fluxbox.org}"
|
find_it w3m append "[exec] (w3m) {${DEFAULT_TERM} -e w3m ${HOMEPAGE}}"
|
||||||
find_it lynx append "[exec] (lynx) {${DEFAULT_TERM} -e lynx fluxbox.org}"
|
find_it lynx append "[exec] (lynx) {${DEFAULT_TERM} -e lynx ${HOMEPAGE}}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
append_submenu IM
|
append_submenu IM
|
||||||
normal_find gaim kopete gnomemeeting
|
normal_find gaim kopete gnomemeeting
|
||||||
find_it licq append "[exec] (licq) {env QT_XFT=true licq}"
|
find_it licq append "[exec] (licq) {env QT_XFT=true licq}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
append_submenu Mail
|
append_submenu Mail
|
||||||
normal_find sylpheed kmail evolution
|
normal_find sylpheed kmail evolution
|
||||||
find_it mutt append "[exec] (mutt) {${DEFAULT_TERM} -e mutt}"
|
find_it mutt append "[exec] (mutt) {${DEFAULT_TERM} -e mutt}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
append_submenu IRC
|
append_submenu IRC
|
||||||
normal_find xchat
|
normal_find xchat
|
||||||
find_it irssi append "[exec] (irssi) {${DEFAULT_TERM} -e irssi}"
|
find_it irssi append "[exec] (irssi) {${DEFAULT_TERM} -e irssi}"
|
||||||
find_it BitchX append "[exec] (BitchX) {${DEFAULT_TERM} -e BitchX -N}"
|
find_it BitchX append "[exec] (BitchX) {${DEFAULT_TERM} -e BitchX -N}"
|
||||||
[ $? -ne 0 ] && \
|
[ $? -ne 0 ] && \
|
||||||
find_it bitchx append "[exec] (BitchX) {${DEFAULT_TERM} -e bitchx -N}"
|
find_it bitchx append "[exec] (BitchX) {${DEFAULT_TERM} -e bitchx -N}"
|
||||||
find_it ircii append "[exec] (ircii) {${DEFAULT_TERM} -e ircii -s}"
|
find_it ircii append "[exec] (ircii) {${DEFAULT_TERM} -e ircii -s}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
normal_find gftp pan
|
normal_find gftp pan
|
||||||
|
@ -483,21 +500,21 @@ append_menu_end
|
||||||
append_submenu ${MULTIMEDIAMENU}
|
append_submenu ${MULTIMEDIAMENU}
|
||||||
append_submenu ${GRAPHICMENU}
|
append_submenu ${GRAPHICMENU}
|
||||||
normal_find gimp xv gqview xpaint kpaint kiconedit xscreensaver-demo
|
normal_find gimp xv gqview xpaint kpaint kiconedit xscreensaver-demo
|
||||||
find_it gears append "[exec] (Mesa gears) {gears}"
|
find_it gears append "[exec] (Mesa gears) {gears}"
|
||||||
find_it morph3d append "[exec] (Mesa morph) {morph3d}"
|
find_it morph3d append "[exec] (Mesa morph) {morph3d}"
|
||||||
find_it reflect append "[exec] (Mesa reflect) {reflect}"
|
find_it reflect append "[exec] (Mesa reflect) {reflect}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
append_submenu ${MUSICMENU}
|
append_submenu ${MUSICMENU}
|
||||||
normal_find xmms gqmpeg xmixer gmix kmix grecord \
|
normal_find xmms gqmpeg xmixer gmix kmix grecord \
|
||||||
kmidi xplaycd soundtracker grip easytag
|
kmidi xplaycd soundtracker grip easytag
|
||||||
find_it cplay append "[exec] (cplay) {${DEFAULT_TERM} -e cplay}"
|
find_it cplay append "[exec] (cplay) {${DEFAULT_TERM} -e cplay}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
|
|
||||||
append_submenu ${MISCMENU}
|
append_submenu ${MISCMENU}
|
||||||
normal_find xine aviplay gtv gmplayer xmovie xcdroast xgdb ddd realplay
|
normal_find xine aviplay gtv gmplayer xmovie xcdroast xgdb ddd realplay
|
||||||
find_it dvdrip append "[exec] (dvdrip) {nohup dvdrip}"
|
find_it dvdrip append "[exec] (dvdrip) {nohup dvdrip}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
append_submenu ${XUTILSMENU}
|
append_submenu ${XUTILSMENU}
|
||||||
|
@ -508,9 +525,9 @@ append_menu_end
|
||||||
|
|
||||||
append_submenu ${OFFICEMENU}
|
append_submenu ${OFFICEMENU}
|
||||||
normal_find xclock xcalc kcalc
|
normal_find xclock xcalc kcalc
|
||||||
find_it gcalc append "[exec] (gcalc) {gcalc}"
|
find_it gcalc append "[exec] (gcalc) {gcalc}"
|
||||||
[ $? -ne 0 ] && \
|
[ $? -ne 0 ] && \
|
||||||
find_it gnome-calculator append "[exec] (gcalc) {gnome-calculator}"
|
find_it gnome-calculator append "[exec] (gcalc) {gnome-calculator}"
|
||||||
find_it ooffice append "[exec] (Open Office) {ooffice}"
|
find_it ooffice append "[exec] (Open Office) {ooffice}"
|
||||||
find_it soffice append "[exec] (Star Office) {soffice}"
|
find_it soffice append "[exec] (Star Office) {soffice}"
|
||||||
normal_find abiword kword wordperfect katoob acroread xpdf
|
normal_find abiword kword wordperfect katoob acroread xpdf
|
||||||
|
@ -519,21 +536,21 @@ append_menu_end
|
||||||
append_submenu ${GAMESMENU}
|
append_submenu ${GAMESMENU}
|
||||||
normal_find bzflag gnibbles gnobots2 tuxpuck gataxx glines \
|
normal_find bzflag gnibbles gnobots2 tuxpuck gataxx glines \
|
||||||
gnect mahjongg gnomine gnome-stones gnometris gnotravex \
|
gnect mahjongg gnomine gnome-stones gnometris gnotravex \
|
||||||
gnotski iagno knights same-gnome xboard freecell pysol \
|
gnotski iagno knights same-gnome xboard freecell pysol \
|
||||||
gtali tuxracer xpenguins xsnow xeyes xpenguins \
|
gtali tuxracer xpenguins xsnow xeyes xpenguins \
|
||||||
quake2 quake3
|
quake2 quake3
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
# gnome menu
|
# gnome menu
|
||||||
if [ -d ${GPKGDATADIR}/gnome/apps -a "${GNOMEMENU}" ]; then
|
if [ -d ${GPKGDATADIR}/gnome/apps -a "${GNOMEMENU}" ]; then
|
||||||
append_submenu ${GNOMEMENUTEXT}
|
append_submenu ${GNOMEMENUTEXT}
|
||||||
for a in `ls ${GPKGDATADIR}/gnome/apps/` ; do
|
for a in `ls ${GPKGDATADIR}/gnome/apps/` ; do
|
||||||
if [ -d ${GPKGDATADIR}/gnome/apps/"${a}" ] ; then
|
if [ -d ${GPKGDATADIR}/gnome/apps/"${a}" ] ; then
|
||||||
append_submenu "${a}"
|
append_submenu "${a}"
|
||||||
menu_entry_dir "${GPKGDATADIR}/gnome/apps/${a}"
|
menu_entry_dir "${GPKGDATADIR}/gnome/apps/${a}"
|
||||||
menu_entry_dircheck "/etc/X11/applnk/${a}"
|
menu_entry_dircheck "/etc/X11/applnk/${a}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
append_menu_end
|
append_menu_end
|
||||||
fi
|
fi
|
||||||
|
@ -542,18 +559,18 @@ fi
|
||||||
if [ -d ${KPKGDATADIR}/applnk/ -a "${KDEMENU}" ]; then
|
if [ -d ${KPKGDATADIR}/applnk/ -a "${KDEMENU}" ]; then
|
||||||
append_submenu ${KDEMENUTEXT}
|
append_submenu ${KDEMENUTEXT}
|
||||||
for a in `ls ${KPKGDATADIR}/applnk/` ; do
|
for a in `ls ${KPKGDATADIR}/applnk/` ; do
|
||||||
if [ -d ${KPKGDATADIR}/applnk/"${a}" ]; then
|
if [ -d ${KPKGDATADIR}/applnk/"${a}" ]; then
|
||||||
append_submenu "${a}"
|
append_submenu "${a}"
|
||||||
for x in ${KPKGDATADIR}/applnk/"${a}"/*; do
|
for x in ${KPKGDATADIR}/applnk/"${a}"/*; do
|
||||||
if [ -d ${KPKGDATADIR}/applnk/"${a}"/"${x}" ]; then
|
if [ -d ${KPKGDATADIR}/applnk/"${a}"/"${x}" ]; then
|
||||||
append_submenu "${x}"
|
append_submenu "${x}"
|
||||||
menu_entry_dir ${KPKGDATADIR}/applnk/"${a}"/"${x}"
|
menu_entry_dir ${KPKGDATADIR}/applnk/"${a}"/"${x}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
menu_entry_dir ${KPKGDATADIR}/applnk/"${a}"
|
menu_entry_dir ${KPKGDATADIR}/applnk/"${a}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
menu_entry_dir ${KPKGDATADIR}/applnk/
|
menu_entry_dir ${KPKGDATADIR}/applnk/
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
@ -561,39 +578,39 @@ fi
|
||||||
|
|
||||||
# append_submenu ${FBSETTINGSMENU}
|
# append_submenu ${FBSETTINGSMENU}
|
||||||
append_submenu Fluxbox-menu
|
append_submenu Fluxbox-menu
|
||||||
append "[config] (${CONFIGUREMENU})"
|
append "[config] (${CONFIGUREMENU})"
|
||||||
|
|
||||||
|
|
||||||
append_menu "[submenu] (${STYLEMENU}) {${STYLEMENUTITLE}}"
|
append_menu "[submenu] (${STYLEMENU}) {${STYLEMENUTITLE}}"
|
||||||
append "[stylesdir] (${PKGDATADIR}/fluxbox/styles)"
|
append "[stylesdir] (${PKGDATADIR}/fluxbox/styles)"
|
||||||
append "[stylesdir] (~/.fluxbox/styles)"
|
append "[stylesdir] (~/.fluxbox/styles)"
|
||||||
|
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
append "[workspaces] (${WORKSPACEMENU})"
|
append "[workspaces] (${WORKSPACEMENU})"
|
||||||
|
|
||||||
append_submenu Tools
|
append_submenu Tools
|
||||||
find_it fluxconf append "[exec] (FluxConf) {fluxconf}"
|
find_it fluxconf append "[exec] (FluxConf) {fluxconf}"
|
||||||
find_it fluxkeys append "[exec] (FluxKeys) {fluxkeys}"
|
find_it fluxkeys append "[exec] (FluxKeys) {fluxkeys}"
|
||||||
find_it fluxmenu append "[exec] (FluxMenu) {fluxmenu}"
|
find_it fluxmenu append "[exec] (FluxMenu) {fluxmenu}"
|
||||||
# if gxmessage exitst use it; else use xmessage
|
# if gxmessage exitst use it; else use xmessage
|
||||||
find_it gxmessage append "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|gxmessage -file - -center}"
|
find_it gxmessage append "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|gxmessage -file - -center}"
|
||||||
[ $? -ne 0 ] && \
|
[ $? -ne 0 ] && \
|
||||||
find_it xmessage append "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|xmessage -file - -center}"
|
find_it xmessage append "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|xmessage -file - -center}"
|
||||||
find_it fbrun append "[exec] (Run) {fbrun}"
|
find_it fbrun append "[exec] (Run) {fbrun}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
append "[reconfig] (${RELOADITEM})"
|
append "[reconfig] (${RELOADITEM})"
|
||||||
append "[restart] (${RESTARTITEM})"
|
append "[restart] (${RESTARTITEM})"
|
||||||
append "[exit] (${EXITITEM})"
|
append "[exit] (${EXITITEM})"
|
||||||
|
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
# this function removes empty menu items. It can not yet remove nested
|
# this function removes empty menu items. It can not yet remove nested
|
||||||
# empty submenus :\
|
# empty submenus :\
|
||||||
|
|
||||||
if [ ! ${REMOVE} ];then
|
if [ ! "${REMOVE}" ];then
|
||||||
clean_up
|
clean_up
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue