JoseExposito / touchegg

Linux multi-touch gesture recognizer
GNU General Public License v3.0
3.65k stars 168 forks source link

Daemon started but no client on Ubuntu-based distro #618

Closed astrojuanlu closed 1 year ago

astrojuanlu commented 1 year ago

Describe the bug

After installing Touchegg from the PPA, I see a touchegg.service properly created. However, it's only the daemon:

juanlu@valinor ~> sudo systemctl status touchegg.service
● touchegg.service - Touchégg Daemon
     Loaded: loaded (/lib/systemd/system/touchegg.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2023-03-05 21:54:42 CET; 9min ago
       Docs: https://github.com/JoseExposito/touchegg/tree/master/installation#readme
   Main PID: 52846 (touchegg)
      Tasks: 4 (limit: 38033)
     Memory: 2.8M
        CPU: 1.426s
     CGroup: /system.slice/touchegg.service
             └─52846 /usr/bin/touchegg --daemon

As such, the gestures don't work. I have to start a client myself, and then everything works:

juanlu@valinor ~> touchegg --debug
Touchégg v2.0.16.
Starting Touchégg in client mode
Parsing your configuration file...
Using configuration file "/home/juanlu/.config/touchegg/touchegg.conf"
Configuration parsed successfully
Connecting to Touchégg daemon...
Connection with Touchégg established
Gesture begin detected
    Gesture information:
        Fingers: 3
        Type: SWIPE
        Direction: RIGHT
    Gesture performed on app: Gnome-terminal
    Action configured for this gesture
    Starting action
Gesture update detected (4.24405%)
Gesture update detected (7.8581%)
Gesture update detected (11.7916%)
Gesture update detected (16.2443%)
Gesture update detected (21.4757%)
Gesture update detected (26.6272%)
Gesture update detected (31.8785%)
Gesture update detected (37.4094%)
Gesture update detected (44.5976%)
Gesture update detected (53.6227%)
Gesture update detected (61.7094%)
Gesture end detected

Expected behaviour

The default installation launches the client as a service (I guess).

Actual behaviour

Only a daemon is launched, which is not enough to make the gestures work.

Your environment

astrojuanlu commented 1 year ago

After restart, there's a touchegg process launched under session-c2.scope, so the problem went away. I don't know enough about systemd to understand what's happening but in any case it works 👍🏽