JoyShockMapper icon indicating copy to clipboard operation
JoyShockMapper copied to clipboard

[Bug] No Icon On System Tray For JSM On Wayland

Open Jazztache opened this issue 1 year ago • 5 comments

Hello! Currently, on KDE Plasma + Arch Linux there is no icon for JoyShockMapper. It's currently just a red 'no' sign on the taskbar.

JSM Output

~ # sudo joyshockmapper
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Invalid argument
ioctl (GFEATURE): Broken pipe
ioctl (GFEATURE): Broken pipe
ioctl (GFEATURE): Broken pipe
Welcome to JoyShockMapper version v3.5.4!
[AUTOLOAD] "~ : zellij" in focus: create AutoLoad\konsole.txt to autoload for this application.
AUTOLOAD is available. Files in /root/.config/JoyShockMapper/AutoLoad/ folder will get loaded automatically when a matching application is in focus.
1 device connected
Resetting all mappings to defaults
There is no OnReset.txt file to load.
There is no OnStartup.txt file to load.
MUP: true
MUP processes event OnPress
Pressing down on key NONE

(joyshockmapper:20114): libappindicator-WARNING **: 12:36:54.363: Unable to get the session bus: Error spawning command line “dbus-launch --autolaunch=cdc45719613e4a08b83bb539f3a1364f --binary-syntax --close-stderr”: Child process exited with code 1

(joyshockmapper:20114): LIBDBUSMENU-GLIB-WARNING **: 12:36:54.363: Unable to get session bus: Error spawning command line “dbus-launch --autolaunch=cdc45719613e4a08b83bb539f3a1364f --binary-syntax --close-stderr”: Child process exited with code 1

System Information:

OS: Arch Linux x86_64 
Host: MS-7C76 1.0 
Kernel: 6.10.10-arch1-1 
Shell: fish 3.7.1 
Resolution: 1920x1080, 1920x1080 
DE: Plasma 6.1.5 
WM: KWin 
Theme: [Plasma], Breeze-Dark [GTK2], Breeze [GTK3] 
Icons: oxygen [Plasma], breeze-dark [GTK2/3] 
Terminal: konsole 
CPU: Intel i7-10700K (16) @ 5.100GHz 
GPU: NVIDIA GeForce RTX 2060 
Memory: 6552MiB / 15911MiB

Jazztache avatar Sep 28 '24 02:09 Jazztache

Screengrab of taskbar: image

Jazztache avatar Sep 28 '24 02:09 Jazztache

Update: The X11 version of Plasma does show an icon. This is on my main PC. My laptop is running Wayland, so that may have something to do with it.

Jazztache avatar Oct 21 '24 00:10 Jazztache

Update: After copying the icons from dist/linux in the source code to /usr/share/icons/hicolor/24x24/status, the icon works with joyshockmapper, but not sudo joyshockmapper. This is very odd. I also recommend updating the PKGBUILD to make sure that the icons are installed.

Jazztache avatar Nov 25 '24 18:11 Jazztache

I've investigated this further.

~ # sudo joyshockmapper
Welcome to JoyShockMapper version v3.5.4!
AUTOLOAD is available. Files in /root/.config/JoyShockMapper/AutoLoad/ folder will get loaded automatically when a matching application is in focus.
0 devices connected
Resetting all mappings to defaults
There is no OnReset.txt file to load.
There is no OnStartup.txt file to load.

(joyshockmapper:62945): libappindicator-WARNING **: 12:57:56.302: Unable to get the session bus: Error spawning command line “dbus-launch --autolaunch=0078fea237c046dc89f0c650ffb7cf40 --binary-syntax --close-stderr”: Child process exited with code 1

(joyshockmapper:62945): LIBDBUSMENU-GLIB-WARNING **: 12:57:56.302: Unable to get session bus: Error spawning command line “dbus-launch --autolaunch=0078fea237c046dc89f0c650ffb7cf40 --binary-syntax --close-stderr”: Child process exited with code 1
^CQUIT

~ # dbus-launch --autolaunch=0078fea237c046dc89f0c650ffb7cf40 --binary-syntax --close-stderr
Autolaunch requested, but X11 support not compiled in.
Cannot continue.
~ # sudo dbus-launch --autolaunch=0078fea237c046dc89f0c650ffb7cf40 --binary-syntax --close-stderr
Autolaunch requested, but X11 support not compiled in.
Cannot continue.
~ # 

It seems like a Wayland issue, because X11 isn't support under dbus. This is very strange, as it works when using it without sudo permissions. Oddly enough both with and without sudo permissions, the dbus launch command fails, which means the icon cannot be loaded for some reason.

Jazztache avatar Nov 26 '24 02:11 Jazztache

For some odd reason, icons have appeared. However, the icon is blurrier and more pixelated when running sudo joyshockmapper over just joyshockmapper.

I plan on diagnosing why this is later on.

Jazztache avatar Dec 04 '24 01:12 Jazztache