config fixes
This commit is contained in:
@@ -43,7 +43,7 @@ Searcher {
|
||||
id: wallpapers
|
||||
|
||||
recursive: true
|
||||
path: Config.wallpaperPath
|
||||
path: Config.general.wallpaperPath
|
||||
filter: FileSystemModel.Images
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ Singleton {
|
||||
|
||||
property real cpuPerc
|
||||
property real cpuTemp
|
||||
readonly property string gpuType: Config.gpuType.toUpperCase() || autoGpuType
|
||||
readonly property string gpuType: Config.services.gpuType.toUpperCase() || autoGpuType
|
||||
property string autoGpuType: "NONE"
|
||||
property real gpuPerc
|
||||
property real gpuTemp
|
||||
@@ -145,7 +145,7 @@ Singleton {
|
||||
Process {
|
||||
id: gpuTypeCheck
|
||||
|
||||
running: !Config.gpuType
|
||||
running: !Config.services.gpuType
|
||||
command: ["sh", "-c", "if command -v nvidia-smi &>/dev/null && nvidia-smi -L &>/dev/null; then echo NVIDIA; elif ls /sys/class/drm/card*/device/gpu_busy_percent 2>/dev/null | grep -q .; then echo GENERIC; else echo NONE; fi"]
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: root.autoGpuType = text.trim()
|
||||
|
||||
Reference in New Issue
Block a user