Re: xset fp+ / xset fp-


Subject: Re: xset fp+ / xset fp-
From: Decklin Foster (fosterd@hartwick.edu)
Date: Fri Apr 14 2000 - 21:42:30 CDT


Kevin Vajk writes:

> xset q 2>/dev/null | grep -q -- $ABISUITE_FONT_HOME
> [ $? -eq 0 ] || xset fp+ $ABISUITE_FONT_HOME 1>/dev/null 2>/dev/null

Sounds good, however, is suppressing errors really a good idea? If
someone has problems with their fonts, that could keep them from
figuring it out. How about:

xset q | grep -q -- $ABISUITE_FONT_HOME || xset fp+ $ABISUITE_FONT_HOME

Hm. This works? I would have thought you needed an 'xset fp rehash'.
Anyway, that business with [ $? -eq 0 ] is just ugly. If you need two
lines, do this:

xset q | grep -q -- $ABISUITE_FONT_HOME \
    || xset fp+ $ABISUITE_FONT_HOME

-- 
Written with 100% free software. Please support the following websites:
www.debian.org www.noamazon.com www.gnu.org www.opendvd.org lpf.ai.mit.edu



This archive was generated by hypermail 2b25 : Fri Apr 14 2000 - 21:42:33 CDT