For those using wayland, a more elegant user-basis solution is to export the following environment variable in your sh rc (.zshrc, .bashrc):
export _JAVA_OPTIONS='-Djdk.gtk.version=2'
Git Clone URL: | https://aur.archlinux.org/ns-usbloader.git (read-only, click to copy) |
---|---|
Package Base: | ns-usbloader |
Description: | Awoo Installer/TinFoil/GoldLeaf NSPs (and other files) uploader and RCM tool. |
Upstream URL: | https://github.com/developersu/ns-usbloader |
Licenses: | GPL3 |
Submitter: | angelodalzotto |
Maintainer: | angelodalzotto |
Last Packager: | angelodalzotto |
Votes: | 6 |
Popularity: | 0.000001 |
First Submitted: | 2020-03-17 01:20 (UTC) |
Last Updated: | 2024-11-09 18:13 (UTC) |
« First ‹ Previous 1 2
For those using wayland, a more elegant user-basis solution is to export the following environment variable in your sh rc (.zshrc, .bashrc):
export _JAVA_OPTIONS='-Djdk.gtk.version=2'
EDIT
this error seems to be related to Wayland and can be tracked here: https://github.com/developersu/ns-usbloader/issues/20
a workaround is to /usr/bin/ns-usbloader
edit with this:
#!/bin/sh
exec /usr/bin/java -Djdk.gtk.version=2 -jar '/usr/share/java/ns-usbloader/ns-usbloader.jar' "$@"
EDN OF EDIT
I'm getting the following error
(java:1473107): Gdk-CRITICAL **: 23:18:08.180: 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=0x00007fcd0b4929cc, pid=1473107, tid=1473536
#
# JRE version: OpenJDK Runtime Environment (13.0.2+8) (build 13.0.2+8)
# Java VM: OpenJDK 64-Bit Server VM (13.0.2+8, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C [libX11.so.6+0x2b9cc] XInternAtom+0x3c
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/everton/core.1473107)
#
# An error report file with more information is saved as:
# /home/everton/hs_err_pid1473107.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
[1] 1473107 abort (core dumped) java -jar /usr/share/java/ns-usbloader/ns-usbloader.jar
Pinned Comments
angelodalzotto commented on 2023-05-07 17:25 (UTC) (edited on 2023-05-07 17:30 (UTC) by angelodalzotto)
I guess the Segoe font is only needed if running jre8 as this issue suggests: https://github.com/developersu/ns-usbloader/issues/131
Maybe I can add the font as an optional dependency
angelodalzotto commented on 2020-04-20 15:04 (UTC)
For those using wayland, a more elegant user-basis solution is to export the following environment variable in your sh rc (.zshrc, .bashrc):
export _JAVA_OPTIONS='-Djdk.gtk.version=2'