linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.54k stars 740 forks source link

Qt5 Configuration Tool (`qt5ct`) segfaults on fresh install of Mint 22 Wilma #12318

Open spamegg1 opened 3 months ago

spamegg1 commented 3 months ago

Distribution

Mint 22

Package version

6.2.7

Graphics hardware in use

Graphics: Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series] driver: amdgpu v: kernel Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X: loaded: amdgpu unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu resolution: 1920x1080~60Hz API: EGL v: 1.5 drivers: radeonsi,swrast platforms: x11,surfaceless,device API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.0.9-0ubuntu0.1 renderer: AMD Radeon Vega 11 Graphics (radeonsi raven LLVM 17.0.6 DRM 3.57 6.8.0-39-generic)

Frequency

Always

Bug description

(Not sure where this belongs, probably not related to Cinnamon. Sorry I could not think of any other place to report.)

Qt5 Settings, or qt5ct fails to launch after install.

Steps to reproduce

  1. Fresh install of Mint 22 Wilma.
  2. apt install qt5ct
  3. Run qt5ct (or launch Qt5 Settings from the Menu, nothing happens).
  4. See error (segfault).

Expected behavior

No crash, should work.

Additional information

Others having the issue: https://forums.linuxmint.com/viewtopic.php?p=2500291

There IS a simple solution: add this to ~/.profile:

# fix Qt5 Settings (qt5ct) issue
export QT_QPA_PLATFORMTHEME=qt5ct

Log out, log back in. Problem disappears permanently.

Liam-Twomey commented 3 months ago

Can confirm that this bug 1) occurs on update, and 2) is resolved via the .profile addition. Unless there's a real need to remove the Qt5 settings in LM22, I think it would be great to have it installed/upgraded by default.

Also, I kept track of which applications were listed as orphaned/incompatible during the upgrade process, and qt5ct was not listed among them.

cgvirus commented 1 month ago

In mint 22 somehow the qt5 config file is corrupted. Hence it can't open up and shows segfault.

Logout and login. Start qt app like VLC.

Liam-Twomey commented 1 month ago

The defaults are mostly fine for light-themed QT5 apps, but I found that the best settings for a dark theme (tested on Kate and Okular) was Style: gtk2, icon theme: breeze dark or ePapirus dark, and all provided style sheets enabled. Specifically, if fusion-fixes.qss is not enabled, all dark theming is utterly broken. I think these were previously the defaults in LM21.3, but I'm not 100% sure.

LinuxOnTheDesktop commented 1 week ago

The profile business does not stop qt5ct from crashing if one runs qt5ct as root; and one needs to run run qt5ct as root in order to theme the program KsystemLog properly. (Still, despite the crash, one can in that way theme KsystemLog correctly.)

I found that the best settings for a dark theme (tested on Kate and Okular) was Style: gtk2, icon theme: breeze dark or ePapirus dark, and all provided style sheets enabled. Specifically, if fusion-fixes.qss is not enabled, all dark theming is utterly broken.

In order to fix - or keep fixed - one element in KsystemLog, namely, its drop-downs, I find that one needs to run qt5ct as a normal user and ensure that 'fusion-fixes' is not enabled. (It remains true that one needs to run qt5ct as root in order to fix Ksystemlogs log line colours. Here, i.e. when running qt5ct as root, and when trying to fix KsystemLog, it seems that it does not matter whether 'fusion-fixes' are enabled. What a mess!)

EDIT: But I do not find that ' if fusion-fixes.qss is not enabled [as a normal user], all dark theming is utterly broken.' But then again there are not that many qt programs that I have tested.