1
0
mirror of https://github.com/artizirk/dotfiles.git synced 2024-12-22 11:30:15 +02:00
dotfiles/.bin/fakebluezplayer.py
2020-04-16 14:52:50 +03:00

9 lines
257 B
Python
Executable File

#!/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)