Line | |
---|
1 | #!/bin/sh |
---|
2 | # ------------------------------------------------------------------------------ |
---|
3 | # NAME |
---|
4 | # fcm_setup_konqueror |
---|
5 | # |
---|
6 | # SYNOPSIS |
---|
7 | # fcm_setup_konqueror |
---|
8 | # |
---|
9 | # DESCRIPTION |
---|
10 | # Set up Konqueror to use "fcm gui". |
---|
11 | # |
---|
12 | # COPYRIGHT |
---|
13 | # (C) Crown copyright Met Office. All rights reserved. |
---|
14 | # For further details please refer to the file COPYRIGHT.txt |
---|
15 | # which you should have received as part of this distribution. |
---|
16 | # ------------------------------------------------------------------------------ |
---|
17 | |
---|
18 | # Check number of arguments |
---|
19 | script=`basename $0` |
---|
20 | usage="$script: no argument required" |
---|
21 | if (( $# != 0 )); then |
---|
22 | echo "$usage, abort..." >&2 |
---|
23 | exit 1 |
---|
24 | fi |
---|
25 | |
---|
26 | filename=fcm_gui.desktop |
---|
27 | |
---|
28 | file=`dirname $0` |
---|
29 | if [[ `basename $file` = bin ]]; then |
---|
30 | file=`dirname $file` |
---|
31 | fi |
---|
32 | file=$file/etc/$filename |
---|
33 | |
---|
34 | if [[ ! -f $file ]]; then |
---|
35 | echo "$script: $file not found, abort..." >&2 |
---|
36 | exit 1 |
---|
37 | fi |
---|
38 | |
---|
39 | dir=$HOME/.kde/share/applnk/.hidden |
---|
40 | mkdir -p $dir |
---|
41 | cd $dir |
---|
42 | rm -f $filename # Always remove. |
---|
43 | ln -s $file . |
---|
44 | |
---|
45 | echo "$script: finished" |
---|
46 | |
---|
47 | #EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.