diff options
author | DRC <dcommander@users.sourceforge.net> | 2010-01-11 20:53:00 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2010-01-11 20:53:00 +0000 |
commit | d28792b404a7e28e6c00dcec71b8e8b83c480ef3 (patch) | |
tree | 3bee17265b0aa75ccd4f288547bd6b8f35c565fc /unix/vncserver | |
parent | cc247c9e0eb575785288e8e12d1eb22df60bfd85 (diff) | |
download | tigervnc-d28792b404a7e28e6c00dcec71b8e8b83c480ef3.tar.gz tigervnc-d28792b404a7e28e6c00dcec71b8e8b83c480ef3.zip |
Remove xfs support, because it doesn't work and isn't needed
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3942 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/vncserver')
-rwxr-xr-x | unix/vncserver | 66 |
1 files changed, 21 insertions, 45 deletions
diff --git a/unix/vncserver b/unix/vncserver index 28764cbe..6ec58668 100755 --- a/unix/vncserver +++ b/unix/vncserver @@ -82,13 +82,6 @@ $defaultXStartup chop($host = `uname -n`); -if (CheckXFS(1)) { - $fontPath = "unix/:7100"; -} else { - if (CheckXFS(0)) { - $fontPath = "inet/:7100"; # Some Solaris systems require this - } -} if (-d "/etc/X11/fontpath.d") { $fontPath = "catalogue:/etc/X11/fontpath.d"; } @@ -114,12 +107,17 @@ foreach $_fpath (@fontpaths) { } } } + if ($defFontPath) { if (substr($defFontPath, -1, 1) == ',') { chop $defFontPath; } } +if ($fontPath eq "") { + $fontPath = $defFontPath; +} + # Check command line options &ParseOptions("-geometry",1,"-depth",1,"-pixelformat",1,"-name",1,"-kill",1, @@ -250,22 +248,23 @@ system("$cmd & echo \$! >$pidFile"); # Give Xvnc a chance to start up sleep(3); -unless (kill 0, `cat $pidFile`) { - if ($fpArgSpecified) { - warn "\nWARNING: The first attempt to start Xvnc failed, probably because the font\n"; - warn "path you specified using the -fp argument is incorrect. Attempting to\n"; - warn "determine an appropriate font path for this system and restart Xvnc using\n"; - warn "that font path ...\n"; - } else { - warn "\nWARNING: The first attempt to start Xvnc failed, possibly because the X Font\n"; - warn "Server is not running and this system does not use a font catalog. Attempting\n"; - warn "to determine an appropriate font path for this system and restart Xvnc using\n"; - warn "that font path ...\n"; +if ($fontPath ne $defFontPath) { + unless (kill 0, `cat $pidFile`) { + if ($fpArgSpecified) { + warn "\nWARNING: The first attempt to start Xvnc failed, probably because the font\n"; + warn "path you specified using the -fp argument is incorrect. Attempting to\n"; + warn "determine an appropriate font path for this system and restart Xvnc using\n"; + warn "that font path ...\n"; + } else { + warn "\nWARNING: The first attempt to start Xvnc failed, possibly because the font\n"; + warn "catalog is not properly configured. Attempting to determine an appropriate\n"; + warn "font path for this system and restart Xvnc using that font path ...\n"; + } + $cmd =~ s@-fp [^ ]+@@; + $cmd .= " -fp $defFontPath" if ($defFontPath); + system("$cmd & echo \$! >$pidFile"); + sleep(3); } - $cmd =~ s@-fp [^ ]+@@; - $cmd .= " -fp $defFontPath" if ($defFontPath); - system("$cmd & echo \$! >$pidFile"); - sleep(3); } unless (kill 0, `cat $pidFile`) { warn "Could not start Xvnc.\n\n"; @@ -411,29 +410,6 @@ sub CheckDisplayNumber # -# CheckXFS checks if the X Font Server is running on the default port (7100) -# - -sub CheckXFS -{ - if ($_[0] == 1) { - if (-e "/tmp/.font-unix/fs7100") { - return 1; - } - } else { - socket(S, $AF_INET, $SOCK_STREAM, 0) || die "$prog: socket failed: $!\n"; - eval 'setsockopt(S, &SOL_SOCKET, &SO_REUSEADDR, pack("l", 1))'; - if (!bind(S, pack('S n x12', $AF_INET, 7100))) { - close(S); - return 1; - } - } - close(S); - return 0; -} - - -# # GetXDisplayDefaults uses xdpyinfo to find out the geometry, depth and pixel # format of the current X display being used. If successful, it sets the # options as appropriate so that the X VNC server will use the same settings |