tazwok rev 34
Multiple desktop file can go in stuff/applications
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Feb 07 14:46:33 2008 +0100 (2008-02-07) |
parents | 0338f2ec63d2 |
children | 44c4e497c492 |
files | tazwok |
line diff
1.1 --- a/tazwok Thu Feb 07 13:52:06 2008 +0100 1.2 +++ b/tazwok Thu Feb 07 14:46:33 2008 +0100 1.3 @@ -323,11 +323,12 @@ 1.4 cp -a $_pkg/usr/share/applications $fs/usr/share 1.5 fi 1.6 # Home made desktop file(s) can be in stuff. 1.7 - if [ -d "stuff" ]; then 1.8 - if ls stuff/*.desktop >/dev/null; then 1.9 + if [ -d "stuff/applications" ]; then 1.10 + cp -a stuff/applications $fs/usr/share 1.11 + fi 1.12 + if [ -f "stuff/$PACKAGE.desktop" ]; then 1.13 mkdir -p $fs/usr/share/applications 1.14 - cp -a stuff/*.desktop $fs/usr/share/applications 1.15 - fi 1.16 + cp -a stuff/$PACKAGE.desktop $fs/usr/share/applications 1.17 fi 1.18 } 1.19