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 1905 times
SDL3:
Screenshot_20240730_172212.png
Screenshot_20240730_172212.png (5.98 KiB) Viewed 1905 times

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

Posted: Sun Nov 24, 2024 1:43 pm
by aljustiet
I have the same issue on Hyprland. You say the issue is fixed on SDL3, but how can I change the SDL used for the factorio?
I used Lutris to install, so I think it's not that hard to do it.

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

Posted: Sun Nov 24, 2024 1:54 pm
by aljustiet
I tried to run it like, hoping that it would use SDL3, but the cursor is still large.
`LD_LIBRARY_PATH=/usr/lib/libSDL3.so.0.1.6:$LD_LIBRARY_PATH ./factorio`

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

Posted: Fri Nov 29, 2024 8:14 am
by raiguard
Factorio statically links sdl, so you can't change the version yourself.

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

Posted: Fri Nov 29, 2024 2:17 pm
by posila
To be fair, it wouldn't be possible to use SDL3 even if SDL2 would be dynamically linked. They are essentially different libraries.