As an interim measure, I've attached a shell script wrapper for Xvnc4 that
(probably incorrectly) works around the problem.
Cheers,
- Dwayne
--
Dwayne C. Litzenberger <[EMAIL PROTECTED]>
#!/bin/sh
# Debian Xvnc4 rgb/font path workaound hack
# by Dwayne C. Litzenberger <[EMAIL PROTECTED]>
#
# Public domain. No warranty.
set -e
get_font_path() {
perl <<'EOF'
open(FILE, "< /etc/X11/xorg.conf") or die("Could not open xorg.conf");
@defaultfonts = (
'/usr/share/fonts/X11/misc/',
'/usr/share/fonts/X11/TTF/',
'/usr/share/fonts/X11/OTF',
'/usr/share/fonts/X11/Type1/',
'/usr/share/fonts/X11/CID/',
'/usr/share/fonts/X11/100dpi/',
'/usr/share/fonts/X11/75dpi/',
);
@fonts = ();
while (<FILE>) {
if (/^Section\s*"Files"\s*$/i) {
$enable=1;
}
if ($enable and /^\s*FontPath\s*"([^"]+)"\s*/i) {
push @fonts, $1;
}
if (/^\s*EndSection\s*$/i) {
$enable=0;
}
}
push @fonts, @defaultfonts;
print join(',', @fonts) . "\n";
exit(0);
EOF
}
exec /usr/bin/Xvnc4 -co /usr/share/X11/rgb -fp "`get_font_path`" "$@"