[Fontconfig] Sigh. What to do about per-user fonts...
Keith Packard
keithp at keithp.com
Thu May 4 10:48:39 PDT 2006
On Wed, 2006-05-03 at 23:09 -0400, Patrick Lam wrote:
> I noticed one problem which occurs when you run fc-cache as root and
> have HOME set to a user directory. I'll have more details (hopefully a
> fix) when I next have free time on Friday or something. Right now I'm
> preparing lecture notes...
I'm not quite sure what to do about that; one option is to strip all ~
relative path names when getuid() != geteuid() from the font path, cache
path and other configurable names.
I was thinking that we already bailed on writing out cache files in this
case though. In which case, the only issue is with sudo. One possible
fix here is to use getpwuid (getuid()) instead of getenv ("HOME").
--
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20060504/90db61f5/attachment.pgp
More information about the Fontconfig
mailing list