cookutils rev 284
Add GENERIC_MENUS option
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Feb 12 22:18:30 2012 +0100 (2012-02-12) |
parents | e9a1cadd8302 |
children | 7b46752d788a |
files | cook |
line diff
1.1 --- a/cook Fri Feb 03 15:22:42 2012 +0100 1.2 +++ b/cook Sun Feb 12 22:18:30 2012 +0100 1.3 @@ -364,8 +364,11 @@ 1.4 fi 1.5 1.6 # Desktop entry (.desktop). 1.7 - if [ -d "$install/usr/share/applications" ] && [ "$WANTED" == "" ]; then 1.8 - cp -a $install/usr/share/applications $fs/usr/share 1.9 + # Generic desktop entry copy can be disabled with GENERIC_MENUS="no" 1.10 + if [ "$GENERIC_MENUS" != "no" ]; then 1.11 + if [ -d "$install/usr/share/applications" ] && [ "$WANTED" == "" ]; then 1.12 + cp -a $install/usr/share/applications $fs/usr/share 1.13 + fi 1.14 fi 1.15 1.16 # Homemade desktop file(s) can be in stuff.