Skip to content

Commit 54f3c5a

Browse files
committed
add pkg download+install and executing support in qutselect_connect_app.sh
1 parent 4c2b7ef commit 54f3c5a

File tree

2 files changed

+65
-3
lines changed

2 files changed

+65
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ endif()
3636
project(qutselect)
3737
set(PROJECT_LONGNAME "qutselect")
3838
set(PROJECT_VERSION_MAJOR 3)
39-
set(PROJECT_VERSION_MINOR 5)
39+
set(PROJECT_VERSION_MINOR 6)
4040
set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
4141

4242
# change output directory to top-level 'bin' dir.

scripts/qutselect_connect_app.sh

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,71 @@ fi
3434
#keyLayout="${7}"
3535
#domain="${8}"
3636
#username="${9}"
37-
serverName="${10}"
37+
app="${10}"
3838

39-
if [[ "${serverName}" == "firefox" ]]; then
39+
TMPDIR=/tmp
40+
41+
if [[ "${app}" == "zoom" ]]; then
42+
43+
if [[ ! -d /opt/zoom ]]; then
44+
yad --center --text="Downloading zoom.pkg...." --title "Zoom Installation" --no-buttons &
45+
yad_pid=$!
46+
/usr/bin/wget -q "${BASE_PATH}/pkgs/zoom.pkg" -O "${TMPDIR}/zoom.pkg"
47+
kill -9 ${yad_pid}
48+
49+
yad --center --text="Installing zoom.pkg...." --title "Zoom Installation" --no-buttons &
50+
yad_pid=$!
51+
tar -C / -xf "${TMPDIR}/zoom.pkg"
52+
rm -f "${TMPDIR}/zoom.pkg"
53+
kill -9 ${yad_pid}
54+
fi
55+
56+
if [[ ! -x /opt/zoom/ZoomLauncher ]]; then
57+
yad --center --text="ERROR: Installation of Zoom failed"
58+
else
59+
yad --center --text="Starting zoom..." --no-buttons &
60+
yad_pid=$!
61+
62+
# remove all previous data
63+
rm -rf ${HOME}/.zoom ${HOME}/.config/zoom*
64+
65+
/opt/zoom/ZoomLauncher &
66+
kill -9 ${yad_pid}
67+
fi
68+
69+
elif [[ "${app}" == "chrome" ]] || [[ "${app}" == "bbb" ]]; then
70+
71+
if [[ ! -d /opt/chrome ]]; then
72+
yad --center --text="Downloading chrome.pkg...." --title "Chrome Installation" --no-buttons &
73+
yad_pid=$!
74+
/usr/bin/wget -q "${BASE_PATH}/pkgs/chrome.pkg" -O "${TMPDIR}/chrome.pkg"
75+
kill -9 ${yad_pid}
76+
77+
yad --center --text="Installing chrome.pkg...." --title "Chrome Installation" --no-buttons &
78+
yad_pid=$!
79+
tar -C / -xf "${TMPDIR}/chrome.pkg"
80+
rm -f "${TMPDIR}/chrome.pkg"
81+
kill -9 ${yad_pid}
82+
fi
83+
84+
if [[ ! -x /opt/chrome/chrome ]]; then
85+
yad --center --text="ERROR: Installation of Chrome failed"
86+
else
87+
yad --center --text="Starting chrome..." --no-buttons &
88+
yad_pid=$!
89+
# remove all previous data
90+
rm -rf ${HOME}/.config/chrome
91+
92+
# start chromium in kiosk mode
93+
if [[ "${app}" == "bbb" ]]; then
94+
/opt/chrome/chrome --app=https://bbb.hzdr.de --start-fullscreen --kiosk --test-type --noerrdialogs --no-first-run --disable-translate --disk-cache-dir=/dev/null --no-sandbox --disable-extensions &
95+
else
96+
/opt/chrome/chrome --start-maximized --test-type --noerrdialogs --no-first-run --disable-translate --disk-cache-dir=/dev/null --no-sandbox --disable-extensions &
97+
fi
98+
kill -9 ${yad_pid}
99+
fi
100+
101+
elif [[ "${app}" == "firefox" ]]; then
40102

41103
# start the firefox browser
42104
if ! /bin/firefox-startup.sh; then

0 commit comments

Comments
 (0)