You are not logged in.

#1 2011-05-30 22:50:00

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

[SOLVED] Installing font files with a PKGBUILD makes them not readable

Hello!

I've been making some PKGBUILDs in order to keep track of what fonts I have installed on my system. Here is one example: http://pastebin.com/Zxp4X5Uf. It simply installes the files that I place in the src folder.

There is however a problem. When pacman installs the font files to /usr/share/fonts/TTF, the files end up being owned by root. Normally this is OK, as all the other files in there is owned by root as well. But these fonts (and just these!) seem to not be accessible by GTK etc when installed this way. Thunar displays the files with a red cross over the icons, while other files I have just downloaded and installed in the same manner display fine. This is bad because selecting these fonts as fonts for e.g. the GTK theme leaves me with only squares =/ is there something I can tell pacman to do to fix this? Or is there a problem with only these font files? They display properly in Thunar when viewed from the src directory (where they are owned by me, the user).

Thank you for any help in sorting this out smile

EDIT: Haha, figured it out. The file permissions for the specific fonts indicated that other users than the owner cannot even read. This carries over when root becomes the owner, so I cannot read the file afterwards ^^ anyway, I'll probably give it two more minutes before I post next time wink

Last edited by mariusmeyer (2011-05-30 22:58:46)

Offline

Board footer

Powered by FluxBB