touchegg icon indicating copy to clipboard operation
touchegg copied to clipboard

Allow touchegg to be run by systemd on-request

Open tintou opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe

Currently, the systemd config file makes it always start with the session. We can make it run only when it is required

Describe the solution you'd like

Systemd allows to start a service when another component requires its D-Bus service. It would be great to have touchegg only started by systemd when a component (like the compositor) is using it.

Additional context

This has been requested by Fedora maintainer in order to not have touchegg run on a pure GNOME session when installed for the Pantheon session.

tintou avatar Feb 12 '21 13:02 tintou

Hi @tintou, I'm looking into this issue... Without any luck for the moment.

Have you ever implemented something like this? I'd appreciate your help :smile:

Following the docs, I added a service file in /usr/share/dbus-1/system-services/io.github.joseexposito.Touchegg.service indicating that when a the interface is created it should run the service (SystemdService) and I also modified the current service type to Type=dbus.

However, the service starts running on boot (and fails) instead of waiting for the D-Bus interface to be created :thinking:

Here is the WIP PR: https://github.com/JoseExposito/touchegg/pull/457

JoseExposito avatar Feb 19 '21 07:02 JoseExposito

Not SUPER helpful, but I know that this is how the notification-daemon package works. The actual package that I've seen that provides this is here. Perhaps that can help with reverse-engineering how to get it to behave?

m-roberts avatar Apr 10 '21 17:04 m-roberts