reverse full logic to remove on init if not included

This commit is contained in:
thelamer 2024-02-13 14:53:41 -08:00
parent b59e67c976
commit 8a0e3d80de
3 changed files with 6 additions and 4 deletions

View File

@ -322,7 +322,8 @@ RUN \
ln -s /usr/local/lib/kasmvnc /usr/lib/kasmvncserver && \
echo "**** openbox tweaks ****" && \
sed -i \
's/NLIMC/NLMC/g' \
-e 's/NLIMC/NLMC/g' \
-e 's|</applications>| <application class="*"><maximized>yes</maximized></application>\n</applications>|' \
/etc/xdg/openbox/rc.xml && \
echo "**** kasm support ****" && \
mkdir -p /kasmbins && \

View File

@ -322,7 +322,8 @@ RUN \
ln -s /usr/local/lib/kasmvnc /usr/lib/kasmvncserver && \
echo "**** openbox tweaks ****" && \
sed -i \
's/NLIMC/NLMC/g' \
-e 's/NLIMC/NLMC/g' \
-e 's|</applications>| <application class="*"><maximized>yes</maximized></application>\n</applications>|' \
/etc/xdg/openbox/rc.xml && \
echo "**** kasm support ****" && \
mkdir -p /kasmbins && \

View File

@ -39,9 +39,9 @@ if [[ ! -z ${NO_DECOR+x} ]] && [[ ! -f /decorlock ]]; then
fi
# Fullscreen everything in openbox unless the user explicitly disables it
if [[ -z ${NO_FULL+x} ]] && [[ ! -f /fulllock ]]; then
if [[ ! -z ${NO_FULL+x} ]] && [[ ! -f /fulllock ]]; then
sed -i \
's|</applications>| <application class="*"><maximized>yes</maximized></application>\n</applications>|' \
'/<application class="\*"><maximized>yes<\/maximized><\/application>/d' \
/etc/xdg/openbox/rc.xml
touch /fulllock
fi