-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqup.sh
More file actions
executable file
·49 lines (40 loc) · 919 Bytes
/
qup.sh
File metadata and controls
executable file
·49 lines (40 loc) · 919 Bytes
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
#!/usr/bin/env sh
# Alexis Megas.
export AA_ENABLEHIGHDPISCALING=1
export AA_USEHIGHDPIPIXMAPS=1
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_X11_NO_MITSHM=1
kde=$(env | grep -ci kde 2>/dev/null)
if [ $kde -gt 0 ]
then
echo "KDE!"
qup_arguments=style="-style=Breeze"
else
qup_arguments=style="-style=Fusion"
fi
# Begin Qup
# Here be special Qup instructions.
# End Qup
if [ -r ./Qup ] && [ -x ./Qup ]
then
echo "Launching a local Qup."
if [ -r ./Lib ]
then
export LD_LIBRARY_PATH=Lib
fi
./Qup "$style" "$@"
exit $?
elif [ -r /opt/qup/Qup ] && [ -x /opt/qup/Qup ]
then
echo "Launching an official Qup."
cd /opt/qup && ./Qup "$style" "$@"
exit $?
elif [ -r /usr/local/qup/Qup ] && [ -x /usr/local/qup/Qup ]
then
echo "Launching an official Qup."
cd /usr/local/qup && ./Qup "$style" "$@"
exit $?
else
echo "Cannot locate Qup. Why?"
exit 1
fi