answered
2014-04-09 14:38:34 +0300
FIRST: Note here that I do not recommend this yet since I have not investigated consequences of changing ambience this way.. it might screw up the whole ambience system..
Got it, find out the ambience file picture file name using the method I provided in the comments to your question.
When you have the file name, you can do this:
dbus-send --session --print-reply --dest=com.jolla.ambienced /com/jolla/ambienced com.jolla.ambienced.setAmbience string:"file://home/nemo/.cache/ambienced/com/jolla/components/bgimages/92607cd6hp.jpg"
Where the name of the pic is obviously the one you queried from the ambienced database.
Apparently ambience daemon also allows changing ambience by ambience picture file name, and not only by .ambience file :)
I am not sure, what you mean. The Ambience image is not moved/copied (according to my understanding of the Ambience mechanisms). The settings are stored in a database (file path/name has been mentioned somewhere here on Together).
Temporary files are noted in this answer: https://together.jolla.com/question/16673/howto-ambiences/?sort=oldest#17984 (you should also check all the other answers to that question).
Of help may also be: https://together.jolla.com/question/32468/wiki-location-of-configuration-etc-files-sailfish/
jgr ( 2014-04-09 00:22:20 +0300 )edit@schturman perhaps it is this what you are looking for => https://together.jolla.com/question/36946/how-to-list-custom-ambiences/
Kari ( 2014-04-09 00:55:30 +0300 )editThanks. What I want that apply my ambience via terminal command. I know how to do this with normal (original) ambiences when I need add this path to the command:
Schturman ( 2014-04-09 00:59:03 +0300 )edit/usr/share/ambience/NAME_OF_AMBIENCE_FOLDER/NAME_OF_AMBIENCE.ambience
And I don't know how to do the same with custom ambience from gallery, because I don't know where the path to the: MY_CUSTOM_AMBIENCE.ambience saved.Kari, thanks...Will try to search in ambienced.sqlite file.
P.S. How to open/read this files ?
Schturman ( 2014-04-09 01:02:07 +0300 )edit@schturman: I suggest, running SQL commands against that file. However, this may not be possible from the Terminal directly.
Reading that file want solve your original problem: Activating a custom Ambience. I expect, you have to set the Ambience definitions at /desktop/jolla/theme/ using gconftool-2 (and hope that the new values are read automatically by Sailfish as soon as the UI draws some new elements on the screen; on gconftool-2 see for example http://ubuntu-tutorials.com/2008/01/10/gconftool-2-gconf-editor-from-the-shell/). Question remains, how you can work out the parameter/value combinations understood by Sailfish. Maybe thp can help you: He originally posted the gconftool-2 commands for color settings.
jgr ( 2014-04-09 01:08:54 +0300 )edit