Contents of /trunk/mage/usr/lib/mage/create_desktop_app.sh
Parent Directory | Revision Log
Revision 24 -
(show annotations)
(download)
(as text)
Wed Jan 5 05:08:01 2005 UTC (19 years, 8 months ago) by niro
File MIME type: application/x-sh
File size: 557 byte(s)
Wed Jan 5 05:08:01 2005 UTC (19 years, 8 months ago) by niro
File MIME type: application/x-sh
File size: 557 byte(s)
mage-0.3.6-r8 import
1 | #!/bin/bash |
2 | |
3 | # version: 0.3.6-r8 |
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 | * |