Contents of /branches/mage-next/src/create_desktop_app.in
Parent Directory | Revision Log
Revision 60 -
(show annotations)
(download)
(as text)
Tue Feb 15 22:59:14 2005 UTC (19 years, 7 months ago) by niro
Original Path: trunk/mage/usr/lib/mage/create_desktop_app.sh
File MIME type: application/x-sh
File size: 558 byte(s)
Tue Feb 15 22:59:14 2005 UTC (19 years, 7 months ago) by niro
Original Path: trunk/mage/usr/lib/mage/create_desktop_app.sh
File MIME type: application/x-sh
File size: 558 byte(s)
rev bump to 0.3.6-r13
1 | #!/bin/bash |
2 | |
3 | # version: 0.3.6-r13 |
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 | * |