|
34 | 34 | #keyLayout="${7}"
|
35 | 35 | #domain="${8}"
|
36 | 36 | #username="${9}"
|
37 |
| -serverName="${10}" |
| 37 | +app="${10}" |
38 | 38 |
|
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 |
40 | 102 |
|
41 | 103 | # start the firefox browser
|
42 | 104 | if ! /bin/firefox-startup.sh; then
|
|
0 commit comments