~hilaire-fernandes/drgeo/trunk

« back to all changes in this revision

Viewing changes to build/vm/gnulinux/DrGeo/DrGeo.sh

  • Committer: Hilaire Fernandes
  • Date: 2022-08-16 20:20:24 UTC
  • Revision ID: hilaire.fernandes@gmail.com-20220816202024-9trlk02ioq73bo3z
WIP bundle

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
3
 
# path
 
3
# Path
4
4
ROOT=`readlink -f $(dirname $0)`
5
 
 
6
5
APP=`dirname "$0"`
7
6
APP=`cd "$APP";pwd`
8
 
 
9
 
VM="$APP/Contents"
10
 
RESOURCES="$APP/Contents/Resources"
11
 
image="$RESOURCES/drgeo.image"
12
 
 
 
7
VM="$APP/VM"
 
8
RESOURCES="$APP/Resources"
 
9
 
 
10
image="$RESOURCES/image/drgeo"
13
11
NB_ARG=$#
 
12
 
 
13
# Icon (note: gvfs-set-attribute is found in gvfs-bin on Ubuntu
 
14
# systems and it seems to require an absolute filename)
 
15
gvfs-set-attribute \
 
16
        "$0" \
 
17
        "metadata::custom-icon" \
 
18
        "file://$RESOURCES/icons/drgeo.png" \
 
19
        2> /dev/null
 
20
 
 
21
 
14
22
# Help
15
23
drgeoHelp () {
16
24
    echo "$1"
68
76
}
69
77
 
70
78
 
71
 
# icon (note: gvfs-set-attribute is found in gvfs-bin on Ubuntu
72
 
# systems and it seems to require an absolute filename)
73
 
gvfs-set-attribute \
74
 
        "$0" \
75
 
        "metadata::custom-icon" \
76
 
        "file://$RESOURCES/drgeo.png" \
77
 
        2> /dev/null
78
 
 
79
 
 
80
79
drgeoOption "$1" "$2"
81
80
echo $DRGEO_OPT"$filename"
82
81