From c92e92924f083e9166b079de375e4862cc5555e8 Mon Sep 17 00:00:00 2001 From: Guy Sheffer Date: Mon, 6 Nov 2023 22:09:22 +0200 Subject: [PATCH] Fix for when running as sudo --- .../fullpageos/filesystem/home/pi/scripts/setX11vncPass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/fullpageos/filesystem/home/pi/scripts/setX11vncPass b/src/modules/fullpageos/filesystem/home/pi/scripts/setX11vncPass index b427328..19aa654 100755 --- a/src/modules/fullpageos/filesystem/home/pi/scripts/setX11vncPass +++ b/src/modules/fullpageos/filesystem/home/pi/scripts/setX11vncPass @@ -1,2 +1,3 @@ #!/usr/bin/env bash -x11vnc -storepasswd "${1}" ~/.vnc/passwd +# fix for when runnign in sudo +bash -c 'x11vnc -storepasswd "'${1}'" ~/.vnc/passwd'