From ced3066d60d116068c0cdd7745340a5f15aebf3a Mon Sep 17 00:00:00 2001 From: Yinan Qin Date: Fri, 18 Oct 2024 22:01:40 +0800 Subject: [PATCH] Fix https://github.com/orgs/LingmoOS/discussions/25 (#18) --- settings-daemon/brightness/brightnessmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings-daemon/brightness/brightnessmanager.cpp b/settings-daemon/brightness/brightnessmanager.cpp index 847504c..2b8b598 100644 --- a/settings-daemon/brightness/brightnessmanager.cpp +++ b/settings-daemon/brightness/brightnessmanager.cpp @@ -77,7 +77,7 @@ int BrightnessManager::brightness() void BrightnessManager::setValue(int value) { QProcess process; - process.start("pkexec", QStringList() << "lingmo-screen-brightness" << "--set" << QString::number(value)); + process.start("pkexec", QStringList() << "/usr/bin/lingmo-screen-brightness" << "--set" << QString::number(value)); process.waitForFinished(-1); }