mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Reduce logging noise, fix small warning
This commit is contained in:
@@ -387,14 +387,14 @@ Singleton {
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: {
|
||||
if (this.text) {
|
||||
Logger.i("AppThemeService", "GenerateProcess stdout:", this.text)
|
||||
Logger.d("AppThemeService", "GenerateProcess stdout:", this.text)
|
||||
}
|
||||
}
|
||||
}
|
||||
stderr: StdioCollector {
|
||||
onStreamFinished: {
|
||||
if (this.text) {
|
||||
Logger.w("AppThemeService", "GenerateProcess stderr:", this.text)
|
||||
Logger.d("AppThemeService", "GenerateProcess stderr:", this.text)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -402,11 +402,12 @@ Singleton {
|
||||
|
||||
Process {
|
||||
id: copyProcess
|
||||
workingDirectory: Quickshell.shellDir
|
||||
running: false
|
||||
stderr: StdioCollector {
|
||||
onStreamFinished: {
|
||||
if (this.text) {
|
||||
Logger.w("AppThemeService", "CopyProcess stderr:", this.text)
|
||||
Logger.d("AppThemeService", "CopyProcess stderr:", this.text)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,10 +47,9 @@ Singleton {
|
||||
lines.push("# post_hook = \"myapp --reload-theme\"")
|
||||
lines.push("")
|
||||
lines.push("# Remove this section and add your own templates")
|
||||
lines.push("[templates.placeholder]")
|
||||
lines.push("input_path = \"" + Quickshell.shellDir + "/Assets/MatugenTemplates/noctalia.json\"")
|
||||
lines.push("output_path = \"" + Settings.cacheDir + "placeholder.json\"")
|
||||
lines.push("post_hook = \"echo 'User templates enabled - replace this placeholder with your own templates'\"")
|
||||
lines.push("#[templates.placeholder]")
|
||||
lines.push("#input_path = \"" + Quickshell.shellDir + "/Assets/MatugenTemplates/noctalia.json\"")
|
||||
lines.push("#output_path = \"" + Settings.cacheDir + "placeholder.json\"")
|
||||
lines.push("")
|
||||
|
||||
return lines.join("\n") + "\n"
|
||||
@@ -75,7 +74,7 @@ Singleton {
|
||||
// Write the config file
|
||||
Quickshell.execDetached(["sh", "-c", `echo '${configContent.replace(/'/g, "'\\''")}' > '${userConfigPath}'`])
|
||||
|
||||
Logger.i("MatugenTemplates", "User templates config written to:", userConfigPath)
|
||||
Logger.d("MatugenTemplates", "User templates config written to:", userConfigPath)
|
||||
}
|
||||
|
||||
// --------------------------------
|
||||
|
||||
Reference in New Issue
Block a user