Hi

If this is the kind of solution you want, then you can very well just
use vnc4server instead as this is that kind of wrapper (that works).

Regards,

// Ola

On Fri, Jun 30, 2006 at 11:11:27PM -0600, Dwayne C. Litzenberger wrote:
> 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`" "$@"


-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to