developersu / ns-usbloader

Awoo Installer and GoldLeaf uploader of the NSPs (and other files), RCM payload injector, application for split/merge files.
GNU General Public License v3.0
1.82k stars 123 forks source link

[Issue] .desktop entry is not working on Wayland (Clear Linux OS) #157

Closed Gui2Barbieri closed 8 months ago

Gui2Barbieri commented 10 months ago

Describe the bug (mandatory) The program does work well if it's executed via the terminal, or using my .desktop entry on X11. But it doesn't work in Wayland, only if it's executed via the terminal.

Information about environment (mandatory):

Steps to reproduce 1.Use Wayland 2.Try to launching via a .desktop file, it will not work 3.Try using the same command that the .desktop file uses in "exec" and it will work. This problem does not happen in X11 and works flawlessly via the .desktop file.

Expected behavior Launch via the .desktop file, just like X11 does.

Screenshots and/or information from application log Screencast from 2023-11-25 15-13-22.webm Screencast from 2023-11-25 15-16-17.webm

I think one of the videos looks corrupt, but the other one shows the problem in Wayland, the one that's corrupted is the one running on X11 (and it's fine, doesn't have issues)

Did you see this issue in previous versions? No

Additional context Add any other context about the problem here

developersu commented 10 months ago

Maybe add ... -Djdk.gtk.version=2 ... argument to the .desktop 'Exec' section like in this advice: https://github.com/developersu/ns-usbloader/issues/20

IDK, since it works once executed from terminal maybe some environment variable missed or something

Gui2Barbieri commented 10 months ago

Unfortunately, it still doesn't work. I think I will just launch it via commands. Probably is a Java bug or something that's going to be fixed in the future.

Gui2Barbieri commented 8 months ago

Maybe add ... -Djdk.gtk.version=2 ... argument to the .desktop 'Exec' section like in this advice: #20

IDK, since it works once executed from terminal maybe some environment variable missed or something

Dunno what you did in the last update, but now it works perfectly and I don't need to use the command-line anymore. My .desktop is working :)