[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: error when opening gv



On Tue, Aug 15, 2006 at 14:07:50 -0700, Rodney D. Myers wrote:
> On Tue, 15 Aug 2006 16:44:13 -0400
> cga2000 <cga2000@optonline.net> wrote:
> 
> > On Tue, Aug 15, 2006 at 04:35:14PM EDT, Rodney D. Myers wrote:
> > > I'm running debian etch/testing
> > > 
> > > From a shell, when opening any postscript file, I get this error
> > > message in a pop-up window;
> > > 
> > > Warning: color name "white" is not defined
> > > Warning: color name "black" is not defined
> > > 
> > > and in the shell I have these error messages;
> > > 
> > > gv  test.ps
> > > Warning: Color name "gray71" is not defined

[ snip: the same message for several other colors ]

> > > Any idea(s) as to how to fix them?
> > > 
> > usually defined in
> > 
> > /etc/X11/rgb.txt
> > 
> > looks like gv cannot find it .. or its contents have been changed ..
> > corrupted..?
> > 
> > IIRC, this would affect other GUI apps as well .. gtk?

[...]

> I think it's affecting WindowMaker, and other apps.
> 
> [rodney@riverside ~] ls -la /etc/X11/rgb.txt
> -rw-r--r-- 1 root root 17371 2006-06-17 09:50 /etc/X11/rgb.txt
> 
> It's been affecting my computer since etch went to XORG.
> 
> I have black, and the rest of the colors defined.
> 
> this is my /etc/X11/rgb.txt file;
> 
> ! $Xorg: rgb.txt,v 1.3 2000/08/17 19:54:00 cpqbld Exp $

[ snip: rest of rgb.txt (identical to the file on my system) ]

Check what your RGBpath really is; the default has changed for Xorg:

$ grep -i rgbpath /var/log/Xorg.0.log
(==) RgbPath set to "/usr/share/X11/rgb"

You can either specify /etc/X11/rgb as the RGBpath in your xorg.conf
(note: do not include the ".txt", it is appended automatically) or you
can create a symlink in /usr/share/X11/ which points to the other file.
This is how it is set up on my box:

$ file /usr/share/X11/rgb.txt
/usr/share/X11/rgb.txt: symbolic link to `/etc/X11/rgb.txt'

I don't remember if I did this myself or if it happened automatically
during the upgrade. In any case, it seems to work.

-- 
Regards,
          Florian



Reply to: