-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL - Create Linux Desktop Icons.sh
executable file
·72 lines (62 loc) · 2.41 KB
/
INSTALL - Create Linux Desktop Icons.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
#### Create Linux Desktop Icons... (.desktop files with absolute paths)
cd $(dirname "$0")
APPNAME=krpano\ Tools
echo "[Desktop Entry]" > "$APPNAME.desktop"
echo "Name=krpano Tools" >> "$APPNAME.desktop"
echo "Exec=\"$PWD/krpano Tools.sh\" %F" >> "$APPNAME.desktop"
echo "Icon=$PWD/.krpanotoolsicon" >> "$APPNAME.desktop"
echo "Terminal=false" >> "$APPNAME.desktop"
echo "Type=Application" >> "$APPNAME.desktop"
echo "Categories=Application;Graphics;" >> "$APPNAME.desktop"
echo "StartupNotify=false" >> "$APPNAME.desktop"
APPNAME=Convert\ SPHERE\ CUBE\ Droplet
echo "[Desktop Entry]" > "$APPNAME.desktop"
echo "Name=Convert SPHERE CUBE Droplet" >> "$APPNAME.desktop"
echo "Exec=\"$PWD/krpano Tools.sh\" -convertdroplet %F" >> "$APPNAME.desktop"
echo "Path=$PWD/" >> "$APPNAME.desktop"
echo "Icon=$PWD/.converticon" >> "$APPNAME.desktop"
echo "Terminal=false" >> "$APPNAME.desktop"
echo "Type=Application" >> "$APPNAME.desktop"
echo "Categories=Application;Graphics;" >> "$APPNAME.desktop"
echo "StartupNotify=false" >> "$APPNAME.desktop"
APPNAME=MAKE\ VTOUR\ Droplet
echo "[Desktop Entry]" > "$APPNAME.desktop"
echo "Name=MAKE VTOUR Droplet" >> "$APPNAME.desktop"
echo "Exec=\"$PWD/krpano Tools.sh\" -makevtour %F" >> "$APPNAME.desktop"
echo "Path=$PWD/" >> "$APPNAME.desktop"
echo "Icon=$PWD/.makevtouricon" >> "$APPNAME.desktop"
echo "Terminal=false" >> "$APPNAME.desktop"
echo "Type=Application" >> "$APPNAME.desktop"
echo "Categories=Application;Graphics;" >> "$APPNAME.desktop"
echo "StartupNotify=false" >> "$APPNAME.desktop"
APPNAME=ENCRYPT\ XML\ droplet
echo "[Desktop Entry]" > "$APPNAME.desktop"
echo "Name=ENCRYPT XML droplet" >> "$APPNAME.desktop"
echo "Exec=\"$PWD/krpanotools\" encrypt -h5 -z %F" >> "$APPNAME.desktop"
echo "Path=$PWD/" >> "$APPNAME.desktop"
echo "Icon=$PWD/.encrypticon" >> "$APPNAME.desktop"
echo "Terminal=true" >> "$APPNAME.desktop"
echo "Type=Application" >> "$APPNAME.desktop"
echo "Categories=Application;Graphics;" >> "$APPNAME.desktop"
echo "StartupNotify=false" >> "$APPNAME.desktop"
chmod 755 *.desktop
#### create link to libudev.so.0
paths=(
"/lib/x86_64-linux-gnu/libudev.so.1"
"/lib/x86_64-linux-gnu/libudev.so.0"
"/usr/lib64/libudev.so.1"
"/usr/lib64/libudev.so.0"
"/usr/lib/libudev.so.1"
"/usr/lib/libudev.so.0"
"/lib/i386-linux-gnu/libudev.so.1"
"/lib/i386-linux-gnu/libudev.so.0"
)
for i in "${paths[@]}"
do
if [ -f $i ]
then
ln -sf "$i" ./libudev.so.0
break
fi
done