spiegel-keyman/linux/keyman-system-service/src/main.cpp
Eberhard Beilharz e4c7332e1c
refactor(linux): use OrderedOutputDeviceMock when running tests
When running tests we use the `OrderedOutputDeviceMock` class which sends a
dbus message for a sentinel key press instead of creating/using a real
"virtual" keyboard.
2025-02-14 16:42:08 +01:00

13 lines
343 B
C++

#include <syslog.h>
#include "KeymanSystemService.h"
int main(int argc, char *argv[]) {
KeymanSystemService keymanSystemService;
keymanSystemService.Initialize();
if (keymanSystemService.Failed()) {
syslog(LOG_USER | LOG_NOTICE, "Failed to initialize KeymanSystemService");
return 1;
}
return keymanSystemService.Loop();
}