Deleted SystemTrayService.

This commit is contained in:
ItsLemmy
2025-11-16 17:08:08 -05:00
parent 3ff5b7639f
commit d8adaf4d4b
2 changed files with 0 additions and 40 deletions
-39
View File
@@ -1,39 +0,0 @@
pragma Singleton
import QtQuick
import Quickshell
import Quickshell.Services.SystemTray
import qs.Commons
/**
* SystemTrayService
* This service ensures that Quickshell's SystemTray service is initialized
* early in the shell startup to avoid programs that should stay in tray, not having access to one (let's hope this works).
*/
Singleton {
id: root
property bool initialized: false
Component.onCompleted: {
if (SystemTray && SystemTray.items) {
Logger.i("SystemTrayService", "SystemTray service initialized");
initialized = true;
// Monitor for tray items to confirm it's working
if (SystemTray.items.valuesChanged) {
Logger.d("SystemTrayService", "SystemTray is ready and monitoring for items");
}
} else {
Logger.w("SystemTrayService", "SystemTray service not available");
}
}
function init() {
// Explicit initialization function
if (!initialized && SystemTray && SystemTray.items) {
Logger.i("SystemTrayService", "SystemTray service initialized via init()");
initialized = true;
}
}
}
-1
View File
@@ -68,7 +68,6 @@ ShellRoot {
sourceComponent: Item {
Component.onCompleted: {
Logger.i("Shell", "---------------------------");
SystemTrayService.init();
WallpaperService.init();
AppThemeService.init();
ColorSchemeService.init();