quickshell: nuke kded6 when starting

This commit is contained in:
2025-10-14 01:28:38 +02:00
parent ba6c735850
commit fcf2dea615
15 changed files with 62 additions and 19 deletions

View File

@@ -58,8 +58,8 @@ Singleton {
if (success) {
try {
const response = JSON.parse(data);
if (response && response.country_code) {
let newCountryCode = response.country_code;
if (response && (response.country_code || response.country)) {
let newCountryCode = response.country_code || response.country;
Logger.log("IpService", "Fetched country code: " + newCountryCode);
countryCode = newCountryCode;
} else {

View File

@@ -467,7 +467,7 @@ Singleton {
Connections {
target: SettingsService.notifications
onDoNotDisturbChanged: {
function onDoNotDisturbChanged() {
const enabled = SettingsService.notifications.doNotDisturb
}
}

View File

@@ -0,0 +1,23 @@
import QtQuick
import Quickshell
import Quickshell.Io
import qs.Utils
pragma Singleton
Singleton {
property bool done: false
Process {
id: process
running: true
command: ["sh", "-c", "kquitapp6 kded6"]
onExited: (code, status) => {
if (code !== 0)
Logger.warn("NukeKded6", `Failed to kill kded6: ${code}`);
done = true;
}
}
}