patch to change window title in qemu vnc
Hi,
enclosed you find a patch, that changes the window title as seen by VNC clients connecting to qemu vnc-sessions from "QEMU" to "QEMU VNC:" followed by the displaynumber you specified with the command line parameter -vnc :0.
This comes in very handy in case you have different qemu instances running on a remote host, and you access them via vnc, as the client's window title gives you a hint to which virtual machine you are connected right now.
Regards, Andreas
*** vnc.c 2008-01-06 20:38:42.000000000 +0100
--- vnc.c 2008-10-02 16:42:06.000000000 +0200
***************
*** 1305,1313 ****
vnc_write(vs, pad, 3); /* padding */
if (qemu_name)
! size = snprintf(buf, sizeof(buf), "QEMU (%s)", qemu_name);
else
! size = snprintf(buf, sizeof(buf), "QEMU");
vnc_write_u32(vs, size);
vnc_write(vs, buf, size);--- 1305,1313 ----
vnc_write(vs, pad, 3); /* padding */
if (qemu_name)
! size = snprintf(buf, sizeof(buf), "QEMU (%s) VNC%s", qemu_name, vs->display);
else
! size = snprintf(buf, sizeof(buf), "QEMU VNC%s", vs->display);
vnc_write_u32(vs, size);
vnc_write(vs, buf, size);Quoted 3 lines · Andreas Leicher
Hi,
enclosed you find a patch, that changes the window title as seen by VNC clients connecting to qemu vnc-sessions from "QEMU" to "QEMU VNC:" followed by the displaynumber you specified with the command line parameter -vnc :0.
This is already supported via the -name parameter. Your patch is against an old copy of QEMU.
Regards,
Anthony Liguori
Quoted 3 lines
This comes in very handy in case you have different qemu instances running on a remote host, and you access them via vnc, as the client's window title gives you a hint to which virtual machine you are connected right now.
Regards, Andreas