1
0
mirror of https://github.com/artizirk/dotfiles.git synced 2024-11-10 03:30:59 +02:00
dotfiles/.bin/fakebluezplayer.py

9 lines
257 B
Python
Raw Normal View History

2020-04-16 14:52:50 +03:00
#!/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)