![]() |
Re: Changing ambience favorites using dbus in qml
Or you can contribute to nemo-dbus plugin
|
Re: Changing ambience favorites using dbus in qml
Quote:
For those that are interested, this works using dbus python. It requires dbus-python3 package to be installed. Here is the python code: import dbus def setFavorite(): bus = dbus.SessionBus() ambD = bus.get_object('com.jolla.ambienced','/com/jolla/ambienced') ind = ambD.createAmbience('file:///usr/share/ambience/harmony/harmony.ambience',dbus_interface='com.jolla.ambien ced') a_dict = {"favorite": True} works = ambD.saveAttributes(1, ind, a_dict, dbus_interface='com.jolla.ambienced') |
All times are GMT. The time now is 19:16. |
vBulletin® Version 3.8.8