Skip to content

Commit 8a610ea

Browse files
committed
fix automatic screen lock
1 parent 17b1d89 commit 8a610ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ubuntu-desktop/18.04/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ RUN curl -fSL "https://www.nomachine.com/free/linux/64/deb" -o nomachine.deb &&\
7878
groupmod -g 2000 nx &&\
7979
rm nomachine.deb &&\
8080
sed -i "s|#EnableClipboard both|EnableClipboard both |g" /usr/NX/etc/server.cfg &&\
81-
sed -i '/DefaultDesktopCommand/c\DefaultDesktopCommand "/usr/bin/startxfce4 && xset s off"' /usr/NX/etc/node.cfg
81+
sed -i '/DefaultDesktopCommand/c\DefaultDesktopCommand "xset s off && /usr/bin/startxfce4"' /usr/NX/etc/node.cfg
8282

8383
## Configure ssh
8484
RUN mkdir /var/run/sshd && \

ubuntu-desktop/20.04/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ RUN curl -fSL "https://www.nomachine.com/free/linux/64/deb" -o nomachine.deb &&\
7575
groupmod -g 2000 nx &&\
7676
rm nomachine.deb &&\
7777
sed -i "s|#EnableClipboard both|EnableClipboard both |g" /usr/NX/etc/server.cfg &&\
78-
sed -i '/DefaultDesktopCommand/c\DefaultDesktopCommand "/usr/bin/startxfce4 && xset s off"' /usr/NX/etc/node.cfg
78+
sed -i '/DefaultDesktopCommand/c\DefaultDesktopCommand "xset s off && /usr/bin/startxfce4"' /usr/NX/etc/node.cfg
7979

8080
## Configure ssh
8181
RUN mkdir /var/run/sshd && \

ubuntu-desktop/22.04/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ RUN curl -fSL "https://www.nomachine.com/free/linux/64/deb" -o nomachine.deb &&\
7575
groupmod -g 2000 nx &&\
7676
rm nomachine.deb &&\
7777
sed -i "s|#EnableClipboard both|EnableClipboard both |g" /usr/NX/etc/server.cfg &&\
78-
sed -i '/DefaultDesktopCommand/c\DefaultDesktopCommand "/usr/bin/startxfce4 && xset s off"' /usr/NX/etc/node.cfg &&\
78+
sed -i '/DefaultDesktopCommand/c\DefaultDesktopCommand "xset s off && /usr/bin/startxfce4"' /usr/NX/etc/node.cfg &&\
7979
# config pulseaudio
8080
cp -R /etc/pulse/* /usr/NX/share/audio/ &&\
8181
sed -i '/AudioInterface pipewire/c\AudioInterface pulseaudio' /usr/NX/etc/node.cfg &&\

0 commit comments

Comments
 (0)