quickshell: nuke kded6 when starting
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -467,7 +467,7 @@ Singleton {
|
||||
|
||||
Connections {
|
||||
target: SettingsService.notifications
|
||||
onDoNotDisturbChanged: {
|
||||
function onDoNotDisturbChanged() {
|
||||
const enabled = SettingsService.notifications.doNotDisturb
|
||||
}
|
||||
}
|
||||
|
||||
23
quickshell/Services/NukeKded6.qml
Normal file
23
quickshell/Services/NukeKded6.qml
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user