From patchwork Tue Dec 11 12:41:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: x11vnc: bind vnc server to port 5900 Date: Tue, 11 Dec 2012 12:41:49 -0000 From: Laurentiu Palcu X-Patchwork-Id: 40749 Message-Id: <1355229709-19296-1-git-send-email-laurentiu.palcu@intel.com> To: openembedded-core@lists.openembedded.org At the moment, if one clicks on X11VNC Server icon, a new vnc server is started on an automatically assigned port (starting with 5900). The problem is that the user can click multiple times on the icon and a new vnc server is started on another port. So, we'll end up with multiple vnc servers, wasting memory. This patch will restrict the x11vnc server port to 5900 (default VNC port) and another process will not be started (because the port is already used), unless the user chooses to start the server manually, from the command line, in which case the port can be changed as the user wishes. [YOCTO #3369] Signed-off-by: Laurentiu Palcu --- .../x11vnc/files/starting-fix.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-graphics/x11vnc/files/starting-fix.patch b/meta/recipes-graphics/x11vnc/files/starting-fix.patch index 11c55e6..cfaa797 100644 --- a/meta/recipes-graphics/x11vnc/files/starting-fix.patch +++ b/meta/recipes-graphics/x11vnc/files/starting-fix.patch @@ -15,7 +15,7 @@ Index: x11vnc-0.9.12/x11vnc/x11vnc.desktop Name=X11VNC Server Comment=Share this desktop by VNC -Exec=x11vnc -gui tray=setpass -rfbport PROMPT -bg -o %%HOME/.x11vnc.log.%%VNCDISPLAY -+Exec=x11vnc -bg -o %%HOME/.x11vnc.log.%%VNCDISPLAY ++Exec=x11vnc -bg -rfbport 5900 -o %%HOME/.x11vnc.log.%%VNCDISPLAY Icon=computer Terminal=false Type=Application