When using xdm(1), x11vnc is started before the display manager in which

case we don't know the auth file. Use the '-auth guess' option to enable
the x11vnc heuristic to find the correct file.
While here, remove -display :0 which is the default.

ok sthen@ (maintainer)
This commit is contained in:
ajacoutot 2011-09-19 21:33:42 +00:00
parent 272fcae15b
commit 1388d85bfb
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.35 2011/09/16 12:29:17 espie Exp $
# $OpenBSD: Makefile,v 1.36 2011/09/19 21:33:42 ajacoutot Exp $
COMMENT = VNC server for real X displays
DISTNAME = x11vnc-0.9.13
REVISION = 0
REVISION = 1
CATEGORIES = x11
HOMEPAGE = http://www.karlrunge.com/x11vnc/

View File

@ -1,9 +1,9 @@
#!/bin/sh
#
# $OpenBSD: x11vnc.rc,v 1.8 2011/03/17 16:48:47 ajacoutot Exp $
# $OpenBSD: x11vnc.rc,v 1.9 2011/09/19 21:33:42 ajacoutot Exp $
daemon="${TRUEPREFIX}/bin/x11vnc"
daemon_flags="-localhost -logfile /var/log/x11vnc -ncache 0 -display :0 -forever -loop100 -auth /etc/X11/xdm/authdir/authfiles/A:0-*"
daemon_flags="-localhost -logfile /var/log/x11vnc -ncache 0 -forever -loop100 -auth guess"
. /etc/rc.d/rc.subr