# HG changeset patch # User Christophe Lincoln # Date 1202391993 -3600 # Node ID 8ca852e10634e7ded3a01de3c1cd72f6ded2641a # Parent 0338f2ec63d270d60eceb0465ba4e5055e64c24b Multiple desktop file can go in stuff/applications diff -r 0338f2ec63d2 -r 8ca852e10634 tazwok --- a/tazwok Thu Feb 07 13:52:06 2008 +0100 +++ b/tazwok Thu Feb 07 14:46:33 2008 +0100 @@ -323,11 +323,12 @@ cp -a $_pkg/usr/share/applications $fs/usr/share fi # Home made desktop file(s) can be in stuff. - if [ -d "stuff" ]; then - if ls stuff/*.desktop >/dev/null; then + if [ -d "stuff/applications" ]; then + cp -a stuff/applications $fs/usr/share + fi + if [ -f "stuff/$PACKAGE.desktop" ]; then mkdir -p $fs/usr/share/applications - cp -a stuff/*.desktop $fs/usr/share/applications - fi + cp -a stuff/$PACKAGE.desktop $fs/usr/share/applications fi }