Skip to content

Commit

Permalink
Add bin/track-announcer script
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyhs committed Nov 10, 2024
1 parent efc65ba commit 3a09eb5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/track-announcer
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env python3

import dbus
from dbus.mainloop.glib import DBusGMainLoop
from gi.repository import GLib
from os import path
import sys

sys.path.insert(0, path.join(path.dirname(path.realpath(__file__)), '..'))

from trackannouncer.cli import Runner

DBusGMainLoop(set_as_default=True)
Runner(dbus.SessionBus(), GLib.MainLoop()).run(sys.argv[1:])

0 comments on commit 3a09eb5

Please sign in to comment.