Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 153324 - RFE: list font paths without any extra garbage
Summary: RFE: list font paths without any extra garbage
Alias: None
Product: Fedora
Classification: Fedora
Component: chkfontpath
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Mike A. Harris
QA Contact: Ben Levenson
Depends On:
Blocks: FC5Target
TreeView+ depends on / blocked
Reported: 2005-04-04 19:42 UTC by Mike A. Harris
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 1.10.1-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-02-16 14:03:08 UTC

Attachments (Terms of Use)

Description Mike A. Harris 2005-04-04 19:42:18 UTC
"chkfontpath --list" spits out a formatted list of font paths, which
is pretty to the human eye, but useless as-is for scripts which want
to do something with the list of font path elements, such as the
xfs initscript.

xfs.init used to do:

/usr/sbin/chkfontpath --list | cut -f 2 -d ':' | sort | uniq

Which kindof worked, but is insufficient and prone to errors.  Ultimately,
chkfontpath should provide the font path information in a script friendly
manner, to avoid scripts from having to hand massage the output into
something useful, potentially making mistakes when doing so.

I've updated the xfs initscript to do the following which is a bit
better now, but still ugly as sin:

/usr/sbin/chkfontpath --list | sed -e '/^Current/d;s#.*:
##g;s#^/.*:[a-z]*$##g;/^[[:space:]]*$/d' | sort | uniq

(hopefully the above all fits in one line in bugzilla)

A new commandline option named something like --listfontpaths which
displays raw font paths, one per line, with no extra formatting or
whitespace is desireable.

If this gets implemented, we can enhance the xfs initscript to use
the likely more reliable new mechanism.

Comment 2 Mike A. Harris 2006-02-16 13:25:18 UTC
Implemented in chkfontpath CVS head as new --listfp option in order to keep
compatibility with scripts out there which may expect the --list option to
work as it has before.

pts/6 mharris@laser:~/src/redhat/chkfontpath$ ./chkfontpath --listfp

Comment 3 Mike A. Harris 2006-02-16 14:03:08 UTC
Fixed in 1.10.1-1 and built in rawhide.

Note You need to log in before you can comment on or make changes to this bug.