Forums

Fonts system-wide

Auteur Réponses
narcisgarcia Mercredi 4 Juillet 2012 à 18:40
narcisgarciaAnonymous

Is there any way to install system-wide the asked Microsoft Fonts, instead of downloading each user on first startup?

Thanks.
Quentin PÂRIS Mercredi 4 Juillet 2012 à 19:12
Quentin PÂRISAnonymous

Open /usr/share/playonlinux/python/lib/Variables.py

Replace the following line

os.environ["DEBIAN_PACKAGE"] = "FALSE"


with

os.environ["DEBIAN_PACKAGE"] = "TRUE"


PlayOnLinux will behave like the version installed in the debian package. Be careful, some other change will occur
narcisgarcia Mercredi 4 Juillet 2012 à 19:25
narcisgarciaAnonymous

Will the Variables.py file be replaced on each package upgrade?

I see that there is commented:
# Debian packagers should switch this to TRUE

If Debian packagers aren't setting that variable properly, a solution could be to detect a Debian environment (for example, by the presence of the directory /etc/apt)

Thanks.
narcisgarcia Mercredi 4 Juillet 2012 à 19:26
narcisgarciaAnonymous

But I'm thinking now: I'm using packages from deb.playonlinux.com !
Quentin PÂRIS Mercredi 4 Juillet 2012 à 19:58
Quentin PÂRISAnonymous

No, that's not the problem. The .deb provided by debian packagers use system fonts while we prefer to downlad them from Microsoft website (it's more portable). So if you set this switch, your playonlinux install will behave like debian one. (You need to change this switch each upgrade)
narcisgarcia Mercredi 4 Juillet 2012 à 20:47
narcisgarciaAnonymous

Are packages in deb.playonlinux.com made by you?
In that case, could you package those with the switch already changed?

Thanks.
Quentin PÂRIS Mercredi 4 Juillet 2012 à 21:29
Quentin PÂRISAnonymous

The debian switch is really specific, and our package is not made to have it enabled by default at all. (For example, PlayOnLinux won't be able to find locales anymore, so it will be in english).
narcisgarcia Mercredi 4 Juillet 2012 à 21:35
narcisgarciaAnonymous

A solution could be to detect that POL is in a Debian environment (for example, by the presence of the directory /etc/apt), and with this test set the default value for os.environ["DEBIAN_PACKAGE"]
Quentin PÂRIS Mercredi 4 Juillet 2012 à 22:11
Quentin PÂRISAnonymous

Nope, it is not an environement problem. It is the way the package is organised.
Vous êtes ici: Index > PlayOnLinux > Fonts system-wide