Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 209478
Collapse All | Expand All

(-)fluxbox-generate_menu.in.orig (-30 / +46 lines)
Lines 73-110 Link Here
73
73
74
Options:
74
Options:
75
75
76
    -k  Insert a kde menu
76
    -k  Insert a KDE menu
77
    -g  Add a gnome menu
77
    -g  Add a Gnome menu
78
    -B  enable backgrounds menu
78
    -B  Enable backgrounds menu
79
    -su enable sudo commands
79
    -su Enable sudo commands
80
    -r  Don't remove empty menu-entries; for templates
80
    -r  Don't remove empty menu-entries; for templates
81
81
82
    -d  other path(s) to recursively search for *.desktop files
82
    -d  Other path(s) to recursively search for *.desktop files
83
    -ds wider search for *.desktop files (takes more time)
83
    -ds Wider search for *.desktop files (takes more time)
84
    -i  other path(s) to search for icons
84
    -i  Other path(s) to search for icons
85
        e.g., "/usr/kde/3.3/share/icons/crystalsvg/16x16/*"
85
        e.g., "/usr/kde/3.3/share/icons/crystalsvg/16x16/*"
86
    -is wider search for icons (worth the extra time)
86
    -is Wider search for icons (worth the extra time)
87
    -in skip icon search
87
    -in Skip icon search
88
88
89
    -t  Favourite terminal
89
    -t  Favourite terminal
90
    -w  Homepage for console-browsers. Default is fluxbox.org
90
    -w  Homepage for console-browsers. Default is fluxbox.org
91
    -b  Favourite browser
91
    -b  Favourite browser
92
    -m  Menu-title; default is "Fluxbox"
92
    -m  Menu-title; default is "Fluxbox"
93
    -o  Outputfile; default is ~/.@pkgprefix@fluxbox@pkgsuffix@/menu
93
    -o  Outputfile; default is ~/.@pkgprefix@fluxbox@pkgsuffix@/menu
94
    -u  user sub-menu; default is ~/.@pkgprefix@fluxbox@pkgsuffix@/usermenu
94
    -u  User sub-menu; default is ~/.@pkgprefix@fluxbox@pkgsuffix@/usermenu
95
95
96
    -h  Display this help
96
    -h  Display this help
97
    -a  Display the authors of this script
97
    -a  Display the authors of this script
98
98
99
  Only for packagers:
99
  Only for packagers:
100
100
101
    -p  prefix; default is @PREFIX@
101
    -p  Prefix; default is @PREFIX@
102
    -n  Gnome-prefix; /opt, /usr, /usr/X11R6 and /usr/local autodetected
102
    -n  Gnome-prefix; /opt, /usr, /usr/X11R6 and /usr/local autodetected
103
    -q  KDE-prefix; idem dito
103
    -q  KDE-prefix; idem dito
104
104
105
105
106
Files:
106
Files:
107
    ~/.@pkgprefix@fluxbox@pkgsuffix@/usermenu     your own submenu which will be included in the menu
107
    ~/.@pkgprefix@fluxbox@pkgsuffix@/usermenu     Your own submenu which will be included in the menu
108
    ~/.@pkgprefix@fluxbox@pkgsuffix@/menuconfig   rc file for fluxbox-generate_menu
108
    ~/.@pkgprefix@fluxbox@pkgsuffix@/menuconfig   rc file for fluxbox-generate_menu
109
109
110
EOF
110
EOF
Lines 117-124 Link Here
117
117
118
    Henrik Kinnunen:    Project leader.
118
    Henrik Kinnunen:    Project leader.
119
    Han Boetes:         Packaging, debugging and scripts.
119
    Han Boetes:         Packaging, debugging and scripts.
120
    Simon Bowden:       Cleanups and compatibility for sun.
120
    Simon Bowden:       Cleanups and compatibility for SUN.
121
    Jeramy B. Smith:    Packaging assistance, gnome and kde menu system.
121
    Jeramy B. Smith:    Packaging assistance, Gnome and KDE menu system.
122
    Filippo Pappalardo: Italian locales and -t option.
122
    Filippo Pappalardo: Italian locales and -t option.
123
    $WHOAMI:            Innocent bystander.
123
    $WHOAMI:            Innocent bystander.
124
124
Lines 396-402 Link Here
396
396
397
    execname="$1"
397
    execname="$1"
398
    shift
398
    shift
399
    [ -n "$1" ] && echo "!! Ignoring extra paramters: $*" >&2
399
    [ -n "$1" ] && echo "!! Ignoring extra parameters: $*" >&2
400
400
401
    [ -z "$execname" ] && { echo "execname is NULL; cannot lookup"; return 1; }
401
    [ -z "$execname" ] && { echo "execname is NULL; cannot lookup"; return 1; }
402
    execname=`removePath "$execname"`
402
    execname=`removePath "$execname"`
Lines 568-573 Link Here
568
MENU_ENCODING=UTF-8 # (its also ascii)
568
MENU_ENCODING=UTF-8 # (its also ascii)
569
569
570
ABOUTITEM='About'
570
ABOUTITEM='About'
571
ANALYZERMENU='Analyzers'
571
BACKGROUNDMENU='Backgrounds'
572
BACKGROUNDMENU='Backgrounds'
572
BACKGROUNDMENUTITLE='Set the Background'
573
BACKGROUNDMENUTITLE='Set the Background'
573
BROWSERMENU='Browsers'
574
BROWSERMENU='Browsers'
Lines 576-582 Link Here
576
EDITORMENU='Editors'
577
EDITORMENU='Editors'
577
EDUCATIONMENU='Education'
578
EDUCATIONMENU='Education'
578
EXITITEM='Exit'
579
EXITITEM='Exit'
579
FBSETTINGSMENU='fluxbox menu'
580
FBSETTINGSMENU='Fluxbox menu'
580
FILEUTILSMENU='File utils'
581
FILEUTILSMENU='File utils'
581
FLUXBOXCOMMAND='Fluxbox Command'
582
FLUXBOXCOMMAND='Fluxbox Command'
582
GAMESMENU='Games'
583
GAMESMENU='Games'
Lines 913-923 Link Here
913
914
914
        MENU_ENCODING=ISO-8859-15
915
        MENU_ENCODING=ISO-8859-15
915
916
917
        ANALYZERMENU='Analyseurs'
916
        BACKGROUNDMENU="Fond d'écran"
918
        BACKGROUNDMENU="Fond d'écran"
917
        BACKGROUNDMENUTITLE="Changer le fond d'écran"
919
        BACKGROUNDMENUTITLE="Changer le fond d'écran"
918
        BROWSERMENU='Navigateurs'
920
        BROWSERMENU='Navigateurs'
919
        CONFIGUREMENU='Configurer'
921
        CONFIGUREMENU='Configurer'
920
        EDITORMENU='Editeurs'
922
        EDITORMENU='Éditeurs'
921
        EXITITEM='Sortir'
923
        EXITITEM='Sortir'
922
        FBSETTINGSMENU='Configurer Fluxbox'
924
        FBSETTINGSMENU='Configurer Fluxbox'
923
        FILEUTILSMENU='Outils fichiers'
925
        FILEUTILSMENU='Outils fichiers'
Lines 926-933 Link Here
926
        GNOMEMENUTEXT='Menus Gnome'
928
        GNOMEMENUTEXT='Menus Gnome'
927
        GRAPHICMENU='Graphisme'
929
        GRAPHICMENU='Graphisme'
928
        KDEMENUTEXT='Menus KDE'
930
        KDEMENUTEXT='Menus KDE'
929
        LOCKSCREEN="Verouiller l'écran"
931
        LOCKSCREEN="Verrouiller l'écran"
930
        MISCMENU='Divers'
932
        MISCMENU='Divers'
933
        MULTIMEDIAMENU='Multimédia'
931
        MUSICMENU='Musique'
934
        MUSICMENU='Musique'
932
        NETMENU='Réseau'
935
        NETMENU='Réseau'
933
        OFFICEMENU='Bureautique'
936
        OFFICEMENU='Bureautique'
Lines 938-949 Link Here
938
        RUNCOMMAND='Run'
941
        RUNCOMMAND='Run'
939
        SCREENSHOT="Capture d'écran"
942
        SCREENSHOT="Capture d'écran"
940
        STYLEMENUTITLE='Choisir un style...'
943
        STYLEMENUTITLE='Choisir un style...'
941
        SYSTEMSTYLES='Styles Systeme'
944
        SYSTEMSTYLES='Styles Système'
945
        SYSTEMTOOLSMENU='Outils Système'
942
        TERMINALMENU='Terminaux'
946
        TERMINALMENU='Terminaux'
943
        TOOLS='Outils'
947
        TOOLS='Outils'
944
        USERSTYLES='Styles Utilisateur'
948
        USERSTYLES='Styles Utilisateur'
949
        VIDEOMENU='Vidéo'
945
        WINDOWMANAGERS='Gestionnaires de fenêtres'
950
        WINDOWMANAGERS='Gestionnaires de fenêtres'
946
        WINDOWNAME='Nom de la fenetre'
951
        WINDOWNAME='Nom de la fenêtre'
947
        WORKSPACEMENU='Liste des bureaux'
952
        WORKSPACEMENU='Liste des bureaux'
948
        XUTILSMENU='Outils X'
953
        XUTILSMENU='Outils X'
949
        ;;
954
        ;;
Lines 1269-1292 Link Here
1269
# KDE_PREFIX=/opt/kde
1274
# KDE_PREFIX=/opt/kde
1270
1275
1271
1276
1272
# Sepparate the list of background-dirs with semicolumns ':'
1277
# Separate the list of background-dirs with semicolumns ':'
1273
# BACKGROUND_DIRS="${USERFLUXDIR}/backgrounds/:@PREFIX@/share/fluxbox/backgrounds/:/usr/share/wallpapers"
1278
# BACKGROUND_DIRS="${USERFLUXDIR}/backgrounds/:@PREFIX@/share/fluxbox/backgrounds/:/usr/share/wallpapers"
1274
1279
1275
1280
1276
# --- Boolean variables.
1281
# --- Boolean variables.
1277
# Setting a variable to ``no'' won't help. Comment them out if you don't
1282
# Setting a variable to ``no'' won't help. Comment them out if you don't
1278
# want them.  Setting are overruled by the command-line options.
1283
# want them. Setting are overruled by the command-line options.
1279
1284
1280
# Include all backgrounds in your backgrounds-directory
1285
# Include all backgrounds in your backgrounds-directory
1281
# BACKGROUNDMENUITEM=yes
1286
# BACKGROUNDMENUITEM=yes
1282
1287
1283
# Include kde-menus
1288
# Include KDE-menus
1284
# KDEMENU=yes
1289
# KDEMENU=yes
1285
1290
1286
# Include gnome-menus
1291
# Include Gnome-menus
1287
# GNOMEMENU=yes
1292
# GNOMEMENU=yes
1288
1293
1289
# enable sudo commands
1294
# Enable sudo commands
1290
# DOSUDO=yes
1295
# DOSUDO=yes
1291
1296
1292
# Don't cleanup the menu
1297
# Don't cleanup the menu
Lines 1571-1576 Link Here
1571
1576
1572
EOF
1577
EOF
1573
1578
1579
1580
#
1581
# Ah my fluxbox hero. Please help me update the apps list.
1582
# $ cp fluxbox-generate-menu.in fluxbox-generate-menu.in.orig
1583
# $ $EDITOR fluxbox-generate-menu.in
1584
# $ diff -u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
1585
# email fbgm.diff to han@mijncomputer.nl
1586
#
1587
1574
echo "[begin] (${MENUTITLE})" >> ${MENUFILENAME}
1588
echo "[begin] (${MENUTITLE})" >> ${MENUFILENAME}
1575
1589
1576
if [ -n "$MENU_ENCODING" ]; then
1590
if [ -n "$MENU_ENCODING" ]; then
Lines 1649-1655 Link Here
1649
      normal_find LinNeighborhood jags SambaSentinel
1663
      normal_find LinNeighborhood jags SambaSentinel
1650
    append_menu_end
1664
    append_menu_end
1651
1665
1652
    append_submenu Analyzer
1666
    append_submenu "${ANALYZERMENU}"
1653
	  normal_find xnmap nmapfe wireshark ettercap
1667
	  normal_find xnmap nmapfe wireshark ettercap
1654
	  sudo_find xnmap nmapfe wireshark ettercap
1668
	  sudo_find xnmap nmapfe wireshark ettercap
1655
    append_menu_end
1669
    append_menu_end
Lines 1685-1690 Link Here
1685
       append_submenu "${GRAPHICMENU}"
1699
       append_submenu "${GRAPHICMENU}"
1686
               normal_find gimp gimp2 gimp-2.2 inkscape sodipodi xv gqview showimg xpaint kpaint kiconedit \
1700
               normal_find gimp gimp2 gimp-2.2 inkscape sodipodi xv gqview showimg xpaint kpaint kiconedit \
1687
                   ee xzgv xscreensaver-demo xlock gphoto tuxpaint krita skencil
1701
                   ee xzgv xscreensaver-demo xlock gphoto tuxpaint krita skencil
1702
					find_it display          append "[exec] (ImageMagick Display) {display}"	
1688
               find_it xnview           append "[exec] (xnview browser) {xnview -browser}"
1703
               find_it xnview           append "[exec] (xnview browser) {xnview -browser}"
1689
               find_it blender          append "[exec] (blender) {blender -w}"
1704
               find_it blender          append "[exec] (blender) {blender -w}"
1690
               find_it gears            append "[exec] (Mesa gears) {gears}"
1705
               find_it gears            append "[exec] (Mesa gears) {gears}"
Lines 1718-1726 Link Here
1718
    find_it gcalc           append "[exec] (gcalc) {gcalc}" || \
1733
    find_it gcalc           append "[exec] (gcalc) {gcalc}" || \
1719
        find_it gnome-calculator append "[exec] (gcalc) {gnome-calculator}"
1734
        find_it gnome-calculator append "[exec] (gcalc) {gnome-calculator}"
1720
    find_it ical            append "[exec] (Calendar)   {ical}"
1735
    find_it ical            append "[exec] (Calendar)   {ical}"
1736
	 find_it sunbird         append "[exec] (Sunbird)    {sunbird}"
1721
1737
1722
    # older <=1.1.3 apparently have stuff like swriter, not sowriter
1738
    # older <=1.1.3 apparently have stuff like swriter, not sowriter
1723
    for ext in s so oo xoo; do
1739
    for ext in oo xoo; do
1724
        find_it ${ext}ffice2 && (
1740
        find_it ${ext}ffice2 && (
1725
            find_it ${ext}ffice2        append "[exec] (Open Office 2)  {${ext}ffice2}"
1741
            find_it ${ext}ffice2        append "[exec] (Open Office 2)  {${ext}ffice2}"
1726
            find_it ${ext}base2         append "[exec] (OO Base 2)      {${ext}base2}"
1742
            find_it ${ext}base2         append "[exec] (OO Base 2)      {${ext}base2}"
Lines 1765-1771 Link Here
1765
        wesnoth canfeild ace_canfeild golf merlin chickens \
1781
        wesnoth canfeild ace_canfeild golf merlin chickens \
1766
        supertux tuxdash  neverball cube_client blackjack \
1782
        supertux tuxdash  neverball cube_client blackjack \
1767
        doom doom3 quake4 blackshades gltron kpoker concentration \
1783
        doom doom3 quake4 blackshades gltron kpoker concentration \
1768
        torrent scramble kiki xmoto warsow wormux
1784
        torrent scramble kiki xmoto warsow wormux zsnes
1769
    cli_find gnugo xgame
1785
    cli_find gnugo xgame
1770
1786
1771
    find_it et append "[exec] (Enemy Territory) {et}"
1787
    find_it et append "[exec] (Enemy Territory) {et}"
Lines 1784-1790 Link Here
1784
  normal_find firestarter gtk-lshw gproftd gpureftpd guitoo porthole gtk-iptables \
1800
  normal_find firestarter gtk-lshw gproftd gpureftpd guitoo porthole gtk-iptables \
1785
              gtk-cpuspeedy
1801
              gtk-cpuspeedy
1786
  find_it    fireglcontrol   append "[exec] (ATI Config) {fireglcontrol}"
1802
  find_it    fireglcontrol   append "[exec] (ATI Config) {fireglcontrol}"
1787
  cli_find    top
1803
  cli_find   top htop
1788
append_menu_end
1804
append_menu_end
1789
1805
1790
1806
Lines 1869-1875 Link Here
1869
    append_submenu "${TOOLS}"
1885
    append_submenu "${TOOLS}"
1870
        normal_find fluxconf fluxkeys fluxmenu
1886
        normal_find fluxconf fluxkeys fluxmenu
1871
        find_it fbpanel append "[exec] (Fluxbox panel) {fbpanel}"
1887
        find_it fbpanel append "[exec] (Fluxbox panel) {fbpanel}"
1872
        # if gxmessage exitst use it; else use xmessage
1888
        # if gxmessage exist use it; else use xmessage
1873
        find_it gxmessage append \
1889
        find_it gxmessage append \
1874
            "[exec] (${WINDOWNAME}) {xprop WM_CLASS|cut -d \\\" -f 2|gxmessage -file - -center}" || \
1890
            "[exec] (${WINDOWNAME}) {xprop WM_CLASS|cut -d \\\" -f 2|gxmessage -file - -center}" || \
1875
            find_it xmessage append \
1891
            find_it xmessage append \

Return to bug 209478