Coffee2CodeNL / gebaar-libinput

Gebaar, A Super Simple WM Independent Touchpad Gesture Daemon for libinput
GNU General Public License v3.0
271 stars 17 forks source link

When started from window manager, gebaard does not exit after exiting WM session #26

Open mystal opened 5 years ago

mystal commented 5 years ago

I'm starting gebaard via i3's support to launch programs on startup via a config file: exec --no-startup-id gebaard

The program starts just fine and works well. But when I exit i3, and thus my X11 session, gebaard sticks around. All other programs started by i3 shut down when I exit, so this seems like a bug specific to gebaard.

mystal commented 5 years ago

Okay, so I dug into this a bit more. Looks like i3 simply starts the gebaard executable and does nothing to shut it down on exit (or any other processes for that matter). The main problem I have is that if I log out and log back in, there will be two gebaard processes.

I wonder what the best way forward is. Either exit cleanly when X11/my window manager exits, or make sure that only one gebaard process can run at once.

RageKnify commented 5 years ago

My solution was to start gebaard in my .xinitrc instead of my i3 config.