summaryrefslogtreecommitdiffstats
path: root/x11vnc/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/user.c')
-rw-r--r--x11vnc/user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/x11vnc/user.c b/x11vnc/user.c
index 150ad37..e9028ba 100644
--- a/x11vnc/user.c
+++ b/x11vnc/user.c
@@ -1985,8 +1985,9 @@ static char *build_create_cmd(char *cmd, int *saw_xdmcp, char *usslpeer, char *t
fdxdmcpif[0] = '\0';
cdout[0] = '\0';
- if (unixpw && keep_unixpw_opts && keep_unixpw_opts[0] != '\0') {
+ if (unixpw && keep_unixpw_opts && !getenv("X11VNC_NO_UNIXPW_OPTS")) {
char *q, *p, *t = strdup(keep_unixpw_opts);
+
if (strstr(t, "gnome")) {
sprintf(fdsess, "gnome");
} else if (strstr(t, "kde")) {