Skip to content

Commit

Permalink
[WtqDBusObject] Moved service name to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingpie committed Nov 23, 2024
1 parent 51c3687 commit a50c0e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/20-Services/Wtq.Services.KWin/DBus/WtqDBusObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit a50c0e2

Please sign in to comment.