| 1 |
#!/bin/sh |
| 2 |
# XDG applicaions menu FVWM-Crystal |
| 3 |
# |
| 4 |
# Version: 1.0 |
| 5 |
# License: GPL 3+ |
| 6 |
# |
| 7 |
# Author: Dominique Michel <[email protected]> |
| 8 |
# |
| 9 |
# Created: <05/13/2014> |
| 10 |
# Changed: <12/29/2015> |
| 11 |
# |
| 12 |
# Description: This provide a XDG application menu using fvwm-menu-desktop. |
| 13 |
|
| 14 |
echo "I make the XDG application menu available via Alt + A." |
| 15 |
echo "Wait until this terminal will close." |
| 16 |
echo "Errors with that script can be ignored by fvwm-crystal, but can be reported upstream (to the application providing buggy desktop or icon file.)" |
| 17 |
echo "" |
| 18 |
echo "This script use fvwm-menu-desktop, and some icon files can get converted, and work but generate errors in the logs. Please report them to the application providing the original icon files," |
| 19 |
echo "or to libpng (old libpng versions do not generate these error messages)." |
| 20 |
echo "If you want to get ride of these errors, please select No XDG Menu with Alt+A in the preferences." |
| 21 |
echo "" |
| 22 |
echo "For best results, install a XDG menu with full support for the additional categories like fvwm-xdg-menu at htpps://github.com/domichel/fvwm-xdg-menu" |
| 23 |
echo "" |
| 24 |
|
| 25 |
mkdir -p ${FVWM_USERDIR}/tmp |
| 26 |
MENU_FILE='.menu' |
| 27 |
|
| 28 |
fvwm-menu-desktop \ |
| 29 |
--menu-type applications \ |
| 30 |
--enable-mini-icons \ |
| 31 |
--theme FVWM_Xdg \ |
| 32 |
--size 32 \ |
| 33 |
--mini-icon-dir ${FVWM_USERDIR}/icons/fvwm-desktop > ${FVWM_USERDIR}/${MENU_FILE} |
| 34 |
sed -i -e 's:Module FvwmPerl -l fvwm-menu-desktop-config.fpl:A $[FVWM_SYSTEMDIR]/scripts/XDG-Menu:' ${FVWM_USERDIR}/${MENU_FILE} |
| 35 |
|
| 36 |
FvwmCommand 'Include .menu' |