ZacharyL2 / KeyEcho

Listen to Mechanical Keyboard Sounds with Every Keystroke - It's Fast
GNU Affero General Public License v3.0
465 stars 10 forks source link

Resolving Compatibility Issues on Non Debian/Ubuntu Linux Distributions #11

Open ZacharyL2 opened 2 weeks ago

ZacharyL2 commented 2 weeks ago

While using the .deb file on Ubuntu/Debian does not present compatibility issues, I have noticed that there are compatibility problems when using the KeyEcho .AppImage file on non-Debian Linux distributions. This could be due to issues with dependencies in our Linux packaging script used in Github Actions.

This issue serves to gather information regarding this problem, and we may address it in future releases. Your feedback and contributions are welcome.

JLuc commented 2 weeks ago

So you ask to post #2 ubuntu related issues here on #11 that is related to non-ubuntu issues ? Well. The V0.0.3 .deb version doesn't improve the situation in any way : it's not working in some apps on ubuntu :

Versions :

> firefox --version && thunderbird --version && geany --version && gedit --version && lsb_release -a
Mozilla Firefox 126.0.2
Thunderbird 115.12.0
geany 1.38 (construit le Oct 14 2021 avec GTK 3.24.30, GLib 2.68.4)
gedit - Version 41.0
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:    22.04
Codename:   jammy
LaptopDev commented 2 weeks ago

I get new warnings with the 0.0.3_amd64.AppImage release.My original issue. The app no longer works with the flatpak version of Thunderbird like it did in version 0.0.2. 0.0.3 works with google-chrome, krita, and obsidian. On my Fedora 39 system with Hyprland, application support is worse now, with gnome-text-editor and gnome-terminal continuing to consuming keypresses for themselves in some manner and not sharing them with KeyEcho.

Warnings:

laptop:~/source/bin$ # 0.0.2 version
laptop:~/source/bin$ ./key-echo_0.0.2_amd64.AppImage

** (key-echo:427265): WARNING **: 14:59:16.741: atk-bridge: get_device_events_reply: unknown signature
^C 
laptop:~/source/bin$ # 0.0.3 version       
laptop:~/source/bin$ ./key-echo_0.0.3_amd64.AppImage 

(key-echo:427748): GLib-GObject-WARNING **: 15:35:30.005: g_object_get_is_valid_property: object class 'GtkSettings' has no property named 'gtk-overlay-scrolling'

(WebKitWebProcess:427774): GLib-GObject-WARNING **: 15:35:30.132: g_object_set_is_valid_property: object class 'GtkSettings' has no property named 'gtk-overlay-scrolling'
/usr/lib/gio/modules/libgiolibproxy.so: wrong ELF class: ELFCLASS32
Failed to load module: /usr/lib/gio/modules/libgiolibproxy.so
/usr/lib/gio/modules/libgiognomeproxy.so: wrong ELF class: ELFCLASS32
Failed to load module: /usr/lib/gio/modules/libgiognomeproxy.so
/usr/lib/gio/modules/libgiognutls.so: wrong ELF class: ELFCLASS32
Failed to load module: /usr/lib/gio/modules/libgiognutls.so

** (key-echo:427748): WARNING **: 15:35:55.021: atk-bridge: get_device_events_reply: unknown signature

My system:

laptop:~/source/bin$ hostnamectl
     Static hostname: laptop
           Icon name: computer-convertible
             Chassis: convertible
          Machine ID: 09dda1d3078040acba1732846bc84d39
             Boot ID: ce65291ba8e947c3b3d7c8a21c2a91c7
    Operating System: Fedora Linux 39 (Workstation Edition) 
         CPE OS Name: cpe:/o:fedoraproject:fedora:39
      OS Support End: Tue 2024-11-12
OS Support Remaining: 4month 4w 1d
              Kernel: Linux 6.8.10-200.fc39.x86_64
        Architecture: x86-64
     Hardware Vendor: HP
      Hardware Model: HP Spectre x360 2-in-1 Laptop 16-f1xxx
    Firmware Version: F.16
       Firmware Date: Fri 2023-04-07
        Firmware Age: 1y 2month 1w
laptop:~/source/bin$ pipewire --version
pipewire
Compiled with libpipewire 1.0.7
Linked with libpipewire 1.0.7
laptop:~/source/bin$ wireplumber --version
wireplumber
Compiled with libwireplumber 0.4.17
Linked with libwireplumber 0.4.17
laptop:~/source/bin$ hyprctl version
Hyprland, built from branch  at commit fe7b748eb668136dd0558b7c8279bfcd7ab4d759  (props: bump version to 0.39.1).
Date: Tue Apr 16 16:01:03 2024
Tag: v0.39.1, commits: 4460

By the way, the latency is halved when not using bluetooth earbuds. Who would have guessed?

ZacharyL2 commented 2 weeks ago

so you ask to post #2 ubuntu related issues here on #11 that is related to non-ubuntu issues ? well. the V0.0.3 .deb version doesn't improve the situation in any way : it's not working in some apps on ubuntu :

  • it's OK in IntelliJ PhpStorm, also in Signal, Gimp, Scribus, Chromium and Chrome
  • but NOT in Firefox, Thunderbird, geany, gedit, terminal...

I downloaded key-echo_0.0.3_amd64.deb and used the command sudo apt install ./key-echo_0.0.3_amd64.deb to install it. Then I tested it with the applications you mentioned: Firefox, Thunderbird, geany, gedit, terminal... and found it to be working fine.

Additionally, here is the environment information:

$ firefox --version && thunderbird --version && geany --version && gedit --version && lsb_release -a

Mozilla Firefox 126.0.1
Thunderbird 115.11.0
geany 1.36 (built on Mar 22 2020 with GTK 3.24.14, GLib 2.64.1)
gedit - Version 3.36.2
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:    20.04
Codename:   focal