Getting trouble installing JDownloader 2 on Fedora 42

I recently did a fresh install of Fedora 42 KDE on my desktop. Everything works great except that I can’t install JDownloader 2. It seems to be missing an X server to launch the gui even though I installed XWayland. This is the error I get:

Could not display the GUI. This application needs access to an X Server.

When the app is run it needs to have the DISPLAY env var defined.
You should have DISPLAY set in your terminal, check with echo $DISPLAY.

Where are you runnning that app from, as a system service or a desktop app?

I am running the installer from the terminal. I do have the DISPLAY env variable set.

$ env | grep DISPLAY
WAYLAND_DISPLAY=wayland-0
DISPLAY=:0

I installed it from Flatpak in gnome and it works normally.