From ec03294ebcb9ece928eb2b67d0faa81838565d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sun, 11 Jun 2023 12:37:42 +0800 Subject: [PATCH] Wallpaper (Linux): support lxqt --- CHANGELOG.md | 2 +- src/detection/gtk_qt/qt.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff48ddd1a..bb7c5cecc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ Changes: * Drop the dependency of cJSON. We now use [yyjson](https://ibireme.github.io/yyjson/doc/doxygen/html/index.html) to parse JSON documents. Features: -* Support KDE wallpaper detection (Wallpaper, Linux) +* Support KDE / LXQT wallpaper detection (Wallpaper, Linux) * Support QTerminal version & terminal font detection # 1.11.3 diff --git a/src/detection/gtk_qt/qt.c b/src/detection/gtk_qt/qt.c index 2a29f9f46..7955be14c 100644 --- a/src/detection/gtk_qt/qt.c +++ b/src/detection/gtk_qt/qt.c @@ -130,6 +130,8 @@ static void detectLXQt(const FFinstance* instance, FFQtResult* result) {"icon_theme = ", &result->icons}, {"font = ", &result->font} }); + + ffParsePropFileConfig(instance, "pcmanfm-qt/lxqt/settings.conf", "Wallpaper=", &result->wallpaper); } const FFQtResult* ffDetectQt(const FFinstance* instance)