1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/ckb-next/modprobe.patch

27 lines
1.1 KiB
Diff
Raw Normal View History

diff --git a/src/daemon/input_linux.c b/src/daemon/input_linux.c
2019-04-26 12:41:13 +01:00
index 8489f5b..b851419 100644
--- a/src/daemon/input_linux.c
+++ b/src/daemon/input_linux.c
2019-04-26 12:41:13 +01:00
@@ -63,7 +63,7 @@ int os_inputopen(usbdevice* kb){
// If not available, load the module
if(fd < 0){
- if(system("modprobe uinput") != 0) {
+ if(system("@kmod@/bin/modprobe uinput") != 0) {
ckb_fatal("Failed to load uinput module\n");
return 1;
}
diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp
2019-04-26 12:41:13 +01:00
index 1eb95bd..f7d38ba 100644
--- a/src/gui/mainwindow.cpp
+++ b/src/gui/mainwindow.cpp
2019-04-26 12:41:13 +01:00
@@ -284,7 +284,7 @@ void MainWindow::updateVersion(){
#elif defined(Q_OS_LINUX)
2019-04-26 12:41:13 +01: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 18:58:25 +00:00
2019-04-26 12:41:13 +01:00
if(!modprobe.waitForFinished())
qDebug() << "Modprobe error";