mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-22 03:02:49 +00:00
SNI: Disallow watcher replacement
Should help against losing the name constantly, if another bar is opened.
This commit is contained in:
parent
ff22c08f01
commit
15ed9bfc66
1 changed files with 1 additions and 1 deletions
|
@ -587,7 +587,7 @@ namespace SNI
|
|||
LOG("SNI: Lost Name! Disabling SNI!");
|
||||
RuntimeConfig::Get().hasSNI = false;
|
||||
};
|
||||
auto flags = G_BUS_NAME_OWNER_FLAGS_REPLACE | G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT;
|
||||
auto flags = G_BUS_NAME_OWNER_FLAGS_REPLACE;
|
||||
g_bus_own_name(G_BUS_TYPE_SESSION, "org.kde.StatusNotifierWatcher", (GBusNameOwnerFlags)flags, +busAcquired, +emptyCallback, +lostName,
|
||||
nullptr, nullptr);
|
||||
watcherSkeleton = sni_watcher_skeleton_new();
|
||||
|
|
Loading…
Reference in a new issue