wertarbyte / triggerhappy

A lightweight hotkey daemon
GNU General Public License v3.0
268 stars 47 forks source link

Trigger files not used at all on ubuntu. #19

Open hickscorp opened 7 years ago

hickscorp commented 7 years ago

The trigger file seems to be parsed and triggers are called when starting the tool manually using:

sudo thd --triggers /etc/triggerhappy/triggers.d /dev/input/event*

However the system daemon doesn't seem to be using the triggers (Eg nothing happens when pressing the keys). Tried sudo service triggerhappy restart, saw 4 normal systemd lines in syslog, but nothing more.

I tried editing /etc/defaults/triggerhappy and add a line reading:

DAEMON_OPTS="--triggers /etc/triggerhappy/triggers.d /dev/input/event*"

but it didn't seem to make any difference after restarting the systemd unit.

Ro-Den commented 1 year ago

THD as a service doesn't function in Ubuntu if it's being run as nobody or root. If being run as the current user the service does its job although with some minor issues. The solution was found here.