STM32CubeProgrammer does not run on Fedora 41
Hello,
I have installed a fresh STM32CubeProgrammer on my Fedora 41 Linux system, but I am unable to run it.
After installation, I have tried running it both using the desktop menu entry and from terminal, however it never starts and crashes with the message "assertion 'GDK_IS_X11_DISPLAY (display)' failed"
~ $ cd .local/STM32CubeProgrammer/bin/
~/.local/STM32CubeProgrammer/bin $ ./STM32CubeProgrammer &
[1] 15440
~/.local/STM32CubeProgrammer/bin $
(java:15447): Gdk-CRITICAL **: 09:43:23.450: gdk_x11_display_set_window_scale: assertion 'GDK_IS_X11_DISPLAY (display)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000000004, pid=15447, tid=0x00007f80980ff6c0
#
# JRE version: OpenJDK Runtime Environment (8.0_382-b06) (build 1.8.0_382-b06)
# Java VM: OpenJDK 64-Bit Server VM (25.382-b06 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C 0x0000000000000004
#
# Core dump written. Default location: /home/remes/.local/STM32CubeProgrammer/bin/core or core.15447
#
# An error report file with more information is saved as:
# /home/remes/.local/STM32CubeProgrammer/bin/hs_err_pid15447.log
#
# If you would like to submit a bug report, please visit:
# https://bell-sw.com/support
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
./STM32CubeProgrammer: line 5: 15447 Aborted (core dumped) "$DIR"/jre/bin/java -Djdk.gtk.version=2 -jar "$DIR/STM32CubeProgrammerLauncher"
Can you help me resolve the issue?

