Contents of /branches/mage-next/src/create_desktop_app.in
Parent Directory | Revision Log
Revision 78 -
(show annotations)
(download)
(as text)
Wed Jun 1 15:48:52 2005 UTC (19 years, 4 months ago) by niro
Original Path: trunk/mage/usr/lib/mage/create_desktop_app.sh
File MIME type: application/x-sh
File size: 662 byte(s)
Wed Jun 1 15:48:52 2005 UTC (19 years, 4 months ago) by niro
Original Path: trunk/mage/usr/lib/mage/create_desktop_app.sh
File MIME type: application/x-sh
File size: 662 byte(s)
changed version tagging only
1 | #!/bin/bash |
2 | |
3 | # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/create_desktop_app.sh,v 1.6 2005-06-01 15:47:47 niro Exp $ |
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 | * |