2018-05-06 19:58:51 +02:00
|
|
|
diff --git a/src/daemon/input_linux.c b/src/daemon/input_linux.c
|
2021-04-23 00:56:40 +02:00
|
|
|
index 933e628..c4f97f2 100644
|
2018-05-06 19:58:51 +02:00
|
|
|
--- a/src/daemon/input_linux.c
|
|
|
|
+++ b/src/daemon/input_linux.c
|
2021-04-23 00:56:40 +02:00
|
|
|
@@ -70,7 +70,7 @@ int os_inputopen(usbdevice* kb){
|
2019-04-26 13:41:13 +02:00
|
|
|
|
|
|
|
// If not available, load the module
|
|
|
|
if(fd < 0){
|
|
|
|
- if(system("modprobe uinput") != 0) {
|
|
|
|
+ if(system("@kmod@/bin/modprobe uinput") != 0) {
|
2021-04-23 00:56:40 +02:00
|
|
|
ckb_fatal("Failed to load uinput module");
|
2019-04-26 13:41:13 +02:00
|
|
|
return 1;
|
|
|
|
}
|
2018-05-06 19:58:51 +02:00
|
|
|
diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp
|
2021-04-23 00:56:40 +02:00
|
|
|
index eeadaf8..87de71f 100644
|
2018-05-06 19:58:51 +02:00
|
|
|
--- a/src/gui/mainwindow.cpp
|
|
|
|
+++ b/src/gui/mainwindow.cpp
|
2021-04-23 00:56:40 +02:00
|
|
|
@@ -309,7 +309,7 @@ void MainWindow::updateVersion(){
|
2018-05-06 19:58:51 +02:00
|
|
|
#elif defined(Q_OS_LINUX)
|
2019-04-26 13:41:13 +02:00
|
|
|
if(!(QFileInfo("/dev/uinput").exists() || QFileInfo("/dev/input/uinput").exists())){
|
|
|
|
QProcess modprobe;
|
|
|
|
- modprobe.start("modprobe", QStringList("uinput"));
|
|
|
|
+ modprobe.start("@kmod@/bin/modprobe", QStringList("uinput"));
|
2018-01-09 19:58:25 +01:00
|
|
|
|
2019-04-26 13:41:13 +02:00
|
|
|
if(!modprobe.waitForFinished())
|
|
|
|
qDebug() << "Modprobe error";
|