Magellan Linux

Annotation of /trunk/mage/usr/lib/mage/create_desktop_app.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 57 - (hide annotations) (download) (as text)
Tue Feb 15 00:37:07 2005 UTC (19 years, 2 months ago) by niro
File MIME type: application/x-sh
File size: 558 byte(s)
updated release version to 0.3.6-r12

1 niro 24 #!/bin/bash
2    
3 niro 57 # version: 0.3.6-r12
4 niro 24
5     if [ $# -lt 1 ]
6     then
7     echo "Usage: $0 [Name] [Comment] [Executable] [Icon] [Categorie] [Notify] [Terminal]"
8     exit 1
9     fi
10    
11     d_name=$1
12     d_comment=$2
13     d_exec=$3
14     d_icon=$4
15     d_categorie=$5
16     d_notify=$6
17     d_terminal=$7
18    
19     if [ -d /usr/share/applications ]
20     then
21     mkdir -p /usr/share/applications
22     fi
23    
24     echo "[Desktop Entry]
25     Encoding=UTF-8
26     Name=${d_name}
27     Comment=${d_comment}
28     Exec=${d_exec}
29     Icon=${d_icon}
30     Terminal=${d_terminal}
31     Type=Application
32     Categories=${d_categorie}
33     StartupNotify=${d_notify}
34     " > /usr/share/applications/${d_name}.desktop

Properties

Name Value
svn:executable *