From a50c0e286b2f2ed8e4da6ebbc5fefa0e2c84ec6c Mon Sep 17 00:00:00 2001 From: Marco van den Oever Date: Sat, 23 Nov 2024 13:57:24 +0100 Subject: [PATCH] [WtqDBusObject] Moved service name to constant --- src/20-Services/Wtq.Services.KWin/DBus/WtqDBusObject.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/20-Services/Wtq.Services.KWin/DBus/WtqDBusObject.cs b/src/20-Services/Wtq.Services.KWin/DBus/WtqDBusObject.cs index e4614528..757b5b50 100644 --- a/src/20-Services/Wtq.Services.KWin/DBus/WtqDBusObject.cs +++ b/src/20-Services/Wtq.Services.KWin/DBus/WtqDBusObject.cs @@ -13,6 +13,7 @@ internal sealed class WtqDBusObject( IWtqBus bus) : IAsyncDisposable, IWtqDBusObject { + private const string ServiceName = "wtq.svc"; private static readonly ObjectPath _path = new("/wtq/kwin"); private readonly CancellationTokenSource _cts = new(); @@ -38,7 +39,7 @@ await _lock _log.LogInformation("Setting up WTQ DBus service"); // Register this object as a DBus service. - await _dbus.RegisterServiceAsync("wtq.svc", this).NoCtx(); + await _dbus.RegisterServiceAsync(ServiceName, this).NoCtx(); // Start NOOP loop. StartNoOpLoop();