Skip to content

Commit c92e929

Browse files
committed
Fix for when running as sudo
1 parent bd32fc8 commit c92e929

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/usr/bin/env bash
2-
x11vnc -storepasswd "${1}" ~/.vnc/passwd
2+
# fix for when runnign in sudo
3+
bash -c 'x11vnc -storepasswd "'${1}'" ~/.vnc/passwd'

0 commit comments

Comments
 (0)