We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

[question] How can I switch ambiences from terminal? [answered]

asked 2015-04-02 21:35:19 +0200

LVPVS gravatar image

updated 2015-09-29 21:31:10 +0200

Hei,

EDIT

I added the solution. Original post is kept for reference.

dbus-send --session --type=method_call --print-reply --dest=com.jolla.ambienced /com/jolla/ambienced com.jolla.ambienced.setAmbience string:'file:///usr/share/ambience/'$2'/'$2'.ambience'

Where '$2' is the name of the ambience.

End of EDIT

Please, somebody, tell me how I can switch ambiences from terminal (dbus?).

Thank you,

LVPVS out.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by simo
close date 2015-04-04 06:45:55.072497

Comments

Hi LVPVS, I got it working with the "dbus-send" method. Many thanks!

Holger ( 2015-10-01 12:24:35 +0200 )edit

Hei @Holger, Thanks for the feedback! :)

If, by any chance, you happen to find out where the user-created ambiences are stored, please let me know. :)

LVPVS over.

LVPVS ( 2015-10-01 13:53:13 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2015-04-02 22:57:09 +0200

Ramirez gravatar image

In the gist is my script written in Python using DBus to switch ambiences - provide ambience name as an argument. https://gist.github.com/jacekmitrega/a94fefc041da8288f466

That was my first script I wrote when my Jolla arrived in 2013. I figured it out how to do it by watching output of dbus-monitor (run it as root) while manually switching ambiences. Absolutely love it <3

edit flag offensive delete publish link more

Comments

@Ramirez Thank you! :) LVPVS out.

LVPVS ( 2015-04-03 12:52:02 +0200 )edit

And one more thing, where are my custom Ambiences stored? LVPVS out.

LVPVS ( 2015-04-03 13:09:39 +0200 )edit

What would it look like with the dbus-send command? LVPVS out.

LVPVS ( 2015-04-03 14:56:40 +0200 )edit

Question tools

Follow
4 followers

Stats

Asked: 2015-04-02 21:35:19 +0200

Seen: 748 times

Last updated: Sep 29 '15