Page 1 of 1

[raiguard][1.1.109][Linux/Wayland/KDE Plasma] Desktop cursor theme is not respected

Posted: Sun Jul 28, 2024 10:34 am
by hypergonial
Description

When launching the game under Wayland with KDE Plasma, the game doesn't respect the cursor theme set in the "System Settings" app (under "Colors & Themes" > "Cursors", which sets the user cursor theme) and instead defaults to the global system cursor theme, which usually means a fallback to the adwaita cursor theme. As far as I can tell this issue is specific to KDE Plasma (wayland) in full-screen mode.

Workaround:
Factorio seems to respect the system cursor theme however, so setting "Inherits=" in /usr/share/icons/default/index.theme to the folder name of a cursor theme in /usr/share/icons will fix the issue. This is not the expected way to set cursor themes in KDE Plasma however, and requires root access.

Misc. Info:
  • Distro: Arch Linux
  • DE: KDE Plasma 6.1.3
  • Factorio version: 1.1.109 (build 62320, linux64, steam)
  • KDE frameworks version: 6.4.0
  • Qt version: 6.7.2
  • Kernel version: 6.10.1-zen1-1
  • Launch flags (Steam):

    Code: Select all

    SDL_VIDEODRIVER=wayland %command%
I reproduced this on two machines, one running the proprietary nvidia driver (R555), one using integrated intel graphics. I have not tested other desktops.

Let me know if I should provide any additional details!

Re: [raiguard][1.1.109][Linux/Wayland/KDE Plasma] Desktop cursor theme is not respected

Posted: Sun Jul 28, 2024 3:47 pm
by BrainGamer_
I can confirm that I can reproduce this.

Distro: NixOS 24.11pre646099.00d80d13810d (Vicuna) x86_64
DE: Plasma 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel: 6.6.36

Re: [raiguard][1.1.109][Linux/Wayland/KDE Plasma] Desktop cursor theme is not respected

Posted: Tue Jul 30, 2024 11:17 pm
by raiguard
This is an SDL bug that has been fixed in SDL3.

SDL2:
Pasted image.png
Pasted image.png (5.81 KiB) Viewed 463 times
SDL3:
Screenshot_20240730_172212.png
Screenshot_20240730_172212.png (5.98 KiB) Viewed 463 times