Queryconnect + Xvnc

69 views
Skip to first unread message

Jay ganatra

unread,
Jan 23, 2025, 1:24:57 AM1/23/25
to TigerVNC User Discussion/Support



I want to use QueryConnect with Xvnc, but the dialog box doesn't show up on the server side. Am I doing something wrong here? Do i need to configure somextra option here ?

I am running Xvnc as a systemd service, and below is the command that I am using. I also tried running the service in the foreground, but it says "Failed to display the dialog box" error:

/etc/X11/Xsession startxfce4 -- /usr/bin/Xvnc :1 -Queryconnect -SecurityTypes vncauth -auth /home/user1/.Xauthority -desktop Test:1 -pn -rfbauth /home/user1/.vnc/passwd -rfbport 5901 -rfbwait 30000

 /usr/bin/Xvnc :1 -Queryconnect -SecurityTypes vncauth -auth /home/user1/.Xauthority -desktop Test:1 -pn -rfbauth /home/user1/.vnc/passwd -rfbport 5901 -rfbwait 30000



Pierre Ossman

unread,
Jan 23, 2025, 3:03:40 AM1/23/25
to Jay ganatra, TigerVNC User Discussion/Support
On 23/01/2025 07:24, Jay ganatra wrote:
> I want to use QueryConnect with Xvnc, but the dialog box doesn't show up on
> the server side. Am I doing something wrong here? Do i need to configure
> somextra option here ?

Yes, unfortunately the dialog is not built in to Xvnc. You also need to
run "vncconfig". It can be started as "vncconfig -nowin" to keep it in
the background until the query dialog is needed.

Regards,
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Jay ganatra

unread,
Jan 23, 2025, 7:28:09 AM1/23/25
to TigerVNC User Discussion/Support
Hi ,

Thanks for the answer But Do I need to also pass the argument -display :1 in vncconfig like below as my vncserver is running on :1 for user1?

vncconfig -display :1 -nowin &

When I run the above command still at client side I got the error

"Attepmt to prompt the user to accept the connection failed"

Pierre Ossman

unread,
Jan 28, 2025, 4:36:28 AM1/28/25
to Jay ganatra, TigerVNC User Discussion/Support
On 23/01/2025 13:28, Jay ganatra wrote:
> Hi ,
>
> Thanks for the answer But Do I need to also pass the argument -display :1
> in vncconfig like below as my vncserver is running on :1 for user1?
>
> vncconfig -display :1 -nowin &
>
> When I run the above command still at client side I got the error
>
> "Attepmt to prompt the user to accept the connection failed"
>

That looks correct. And that error message is expected when Xvnc times
out waiting for the user to respond.

This might be a case of unclear expectations. The dialog box will show
up inside the VNC session. So you'd need some other way to users to
access the session, as the VNC way will not be available.

It is not possible to show the dialog on a separate session than the one
being controlled.
Reply all
Reply to author
Forward
0 new messages