mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-29 19:00:59 +02:00
9 lines
257 B
Python
9 lines
257 B
Python
|
#!/usr/bin/env python3
|
||
|
import dbus, time
|
||
|
bus = dbus.SystemBus()
|
||
|
media = dbus.Interface(bus.get_object("org.bluez", "/org/bluez/hci0"), 'org.bluez.Media1')
|
||
|
path = dbus.ObjectPath('/dummy_player')
|
||
|
media.RegisterPlayer(path, {})
|
||
|
while True: time.sleep(10000)
|
||
|
|