The forum

Fonts system-wide

Author Replies
narcisgarcia Wednesday 4 July 2012 at 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 Wednesday 4 July 2012 at 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 Wednesday 4 July 2012 at 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 Wednesday 4 July 2012 at 19:26
narcisgarciaAnonymous

But I'm thinking now: I'm using packages from deb.playonlinux.com !
Quentin PÂRIS Wednesday 4 July 2012 at 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 Wednesday 4 July 2012 at 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 Wednesday 4 July 2012 at 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 Wednesday 4 July 2012 at 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 Wednesday 4 July 2012 at 22:11
Quentin PÂRISAnonymous

Nope, it is not an environement problem. It is the way the package is organised.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com