Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 40 - (show annotations) (download) (as text)
Thu Jan 6 23:28:28 2005 UTC (19 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 558 byte(s)
updated revision tags

1 #!/bin/bash
2
3 # version: 0.3.6-r10
4
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 *