Comment 1 for bug 3593

I am pretty sure this is the same problem I am having. I always use the /usr/bin/vnc4server wrapper to start the VNC server, which is usually linked to by /usr/bin/vncserver, depending alternatives configuration.

I'm not sure if these are the most elegant, but I found that this bug can be fixed in one of the following two ways:

1. Uncommenting and editing the following definition in /etc/vnc.conf --
$XFConfigPath = "/etc/X11/xorg.conf";

2. Editing the script /usr/bin/vnc4server and making the following change to add three lines --
 if (!$XFConfigPath) {
     if (-e "/etc/X11/XF86Config-4") {
         $XFConfigPath = "/etc/X11/XF86Config-4";
     elsif (-e "/etc/X11/XF86Config") {
         $XFConfigPath = "/etc/X11/XF86Config";
+ elsif (-e "/etc/X11/xorg.conf") {
+ $XFConfigPath = "/etc/X11/xorg.conf";
+ }