mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2025-02-02 02:19:14 +01:00
KASM-2408 remove maximus from script
This commit is contained in:
parent
ba85b9c767
commit
6834d3a950
@ -1,22 +1,9 @@
|
|||||||
# MAXIMIZE and MAXIMIZE_NAME are exported by the calling script
|
# MAXIMIZE and MAXIMIZE_NAME are exported by the calling script
|
||||||
# This script will check against the container OS to do the right thing.
|
# This script will check against the container OS to do the right thing.
|
||||||
|
|
||||||
# Array of codenames that support maximus
|
|
||||||
MAXIMUS_CODENAMES=("bionic")
|
|
||||||
# Array of codenames that support wmctrl
|
|
||||||
WMCTRL_CODENAMES=("focal")
|
|
||||||
|
|
||||||
maximize_window(){
|
maximize_window(){
|
||||||
set +e
|
set +e
|
||||||
if [[ ${MAXIMIZE} == 'true' ]] ; then
|
if [[ ${MAXIMIZE} == 'true' ]] ; then
|
||||||
if [[ ${MAXIMUS_CODENAMES[*]} =~ $(lsb_release -cs) ]] ; then
|
|
||||||
# only start maximus if it isn't already running
|
|
||||||
if ! pgrep -x maximus > /dev/null
|
|
||||||
then
|
|
||||||
maximus &
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [[ ${WMCTRL_CODENAMES[*]} =~ $(lsb_release -cs) ]] ; then
|
|
||||||
while true; do
|
while true; do
|
||||||
end=$((SECONDS+60))
|
end=$((SECONDS+60))
|
||||||
while [ $SECONDS -lt $end ]; do
|
while [ $SECONDS -lt $end ]; do
|
||||||
@ -32,7 +19,6 @@ maximize_window(){
|
|||||||
sleep 10
|
sleep 10
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
set -e
|
set -e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user