Skip to content

Commit

Permalink
add log output redirection to qutselect_connect_app.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Sep 27, 2024
1 parent 0858e02 commit 1abdfde
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ endif()
project(qutselect)
set(PROJECT_LONGNAME "qutselect")
set(PROJECT_VERSION_MAJOR 3)
set(PROJECT_VERSION_MINOR 6)
set(PROJECT_VERSION_MINOR 7)
set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})

# change output directory to top-level 'bin' dir.
Expand Down
16 changes: 12 additions & 4 deletions scripts/qutselect_connect_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ app="${10}"

TMPDIR=/tmp

res=2
if [[ "${app}" == "zoom" ]]; then

if [[ ! -d /opt/zoom ]]; then
Expand All @@ -62,7 +63,9 @@ if [[ "${app}" == "zoom" ]]; then
# remove all previous data
rm -rf "${HOME}/.zoom" "${HOME}/.config/zoom.conf" "${HOME}/.config/zoomus.conf"

/opt/zoom/ZoomLauncher &
/opt/zoom/ZoomLauncher >/tmp/zoom-${USER}-$$.log 2>&1 &
res=$?

kill -9 ${yad_pid}
fi

Expand Down Expand Up @@ -92,10 +95,13 @@ elif [[ "${app}" == "chrome" ]] || [[ "${app}" == "bbb" ]]; then

# start chromium in kiosk mode
if [[ "${app}" == "bbb" ]]; then
/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 &
/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 >/tmp/chrome-${USER}-$$.log 2>&1 &
res=$?
else
/opt/chrome/chrome --start-maximized --test-type --noerrdialogs --no-first-run --disable-translate --disk-cache-dir=/dev/null --no-sandbox --disable-extensions &
/opt/chrome/chrome --start-maximized --test-type --noerrdialogs --no-first-run --disable-translate --disk-cache-dir=/dev/null --no-sandbox --disable-extensions >/tmp/chrome-${USER}-$$.log 2>&1 &
res=$?
fi

kill -9 ${yad_pid}
fi

Expand All @@ -104,7 +110,9 @@ elif [[ "${app}" == "firefox" ]]; then
# start the firefox browser
if ! /bin/firefox-startup.sh; then
exit 2
else
res=0
fi
fi

exit 0
exit ${res}

0 comments on commit 1abdfde

Please sign in to comment.