Installing on Ubuntu 22 and newer
Before installing the StaffCounter Agent on Ubuntu 22 or later, you must switch the display server from Wayland to X11.
Wayland is enabled by default in Ubuntu 22.04 (Jammy Jellyfish), but it can be disabled via the system configuration.
Disabling Wayland
Edit the GDM3 configuration file:
sudo nano /etc/gdm3/custom.confFind the following line:
#WaylandEnable=false
Uncomment it (remove the #) and set it to:
WaylandEnable=false
Save the file and reboot your system for the changes to take effect.