You are not logged in.

#1 2016-10-08 15:40:07

altermetax
Member
Registered: 2016-03-19
Posts: 94

[SOLVED] Minecraft launcher on KDE: two problems

Hello everyone, I'll go straight into the problems.
1. When I start the Minecraft launcher (a Java Swing application) in KDE, the used theme is the default Swing one, don't know why. Using the tricks for changing the Swing theme to gtk won't work.
2. In the Minecraft launcher fonts are not correctly rendering.
A screen with both the problems:
(link)
On the same Arch install, with GNOME running, everything works.

Thanks for answers.

Last edited by altermetax (2016-10-08 22:47:12)

Offline

#2 2016-10-08 15:53:08

mpan
Member
Registered: 2012-08-01
Posts: 1,669
Website

Re: [SOLVED] Minecraft launcher on KDE: two problems

I know nothing about Minecraft’s launcher, but in general to get GTK L&F, if it’s available, you should select it explicitly by setting property “swing.defaultlaf” to “com.sun.java.swing.plaf.gtk.GTKLookAndFeel”. As for the fonts, try playing with  “awt.useSystemAAFontSettings”.

If neither of them take any effect, then probably the authors of the application hardcoded settings that suit their own computers.

Offline

#3 2016-10-08 16:58:31

altermetax
Member
Registered: 2016-03-19
Posts: 94

Re: [SOLVED] Minecraft launcher on KDE: two problems

mpan wrote:

I know nothing about Minecraft’s launcher, but in general to get GTK L&F, if it’s available, you should select it explicitly by setting property “swing.defaultlaf” to “com.sun.java.swing.plaf.gtk.GTKLookAndFeel”. As for the fonts, try playing with  “awt.useSystemAAFontSettings”.

If neither of them take any effect, then probably the authors of the application hardcoded settings that suit their own computers.

That is true, they hardcoded everything. When the Minecraft launcher loads (with a white screen with text and a scrollbar on the right), the scrollbar gets the theme you chose. Once the launcher is loaded, all of your settings are ignored. My answer is: why does it work well with GNOME/Cinnamon and not with KDE/Xfce/MATE(gtk2)/Lxde?

Offline

#4 2016-10-08 17:29:19

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,695
Website

Re: [SOLVED] Minecraft launcher on KDE: two problems

You can use 'swing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' as noted at https://wiki.archlinux.org/index.php/Ja … ookAndFeel

Here's how that looks on my KDE system: http://imgur.com/sG7LZvQ


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2016-10-08 22:34:12

altermetax
Member
Registered: 2016-03-19
Posts: 94

Re: [SOLVED] Minecraft launcher on KDE: two problems

WorMzy wrote:

You can use 'swing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' as noted at https://wiki.archlinux.org/index.php/Ja … ookAndFeel

Here's how that looks on my KDE system: http://imgur.com/sG7LZvQ

Thank you very much, that worked for the theme. But I still can't figure out how to solve the fonts problem.

Last edited by altermetax (2016-10-08 22:39:37)

Offline

#6 2016-10-08 22:46:59

altermetax
Member
Registered: 2016-03-19
Posts: 94

Re: [SOLVED] Minecraft launcher on KDE: two problems

Okay, just found the solution to that, too. Changing to [SOLVED].
Thank you very much!

Last edited by altermetax (2016-10-08 22:47:25)

Offline

Board footer

Powered by FluxBB