How to list custom ambiences?

asked 2014-03-30 17:03:51 +0300

matrixx gravatar image

updated 2014-03-30 17:04:07 +0300

I see the pre-built ambiences and the ones installed from rpm are saved under /usr/share/ambience/, but where/how are the ones saved which are made from own images on the device?

At least I didn't find them from the filesystem so I suspect they are saved as metadata in the tracker. Can someone give me pointers to the documentation of corresponding tracker ontology, if they are saved in tracker? Or if not, provide another way to retrieve the list of ambiences.

My app will need this info (as read-only, no purpose to modify any existing ambiences), and I would be really grateful if someone would help me to get this info.

edit retag flag offensive close delete



Hi matrixx - Here's one place to look.

I connected my phone to my PC (Win7x64bit) via USB and navigated to

Phone Memory /.local/share/system/privileged/Ambienced/ambienced.sqlite

I think within in that sqlite file, you will find details of what is currently in use/ready to use. That's as far as I got, so this is only a pointer, a suggestion not an answer as such :)


Edz ( 2014-03-30 17:29:36 +0300 )edit

@Markkyboy Great thanks for the tip! I found the file and examined the contents and there they are, very neatly :) This makes my app a bit more complicated as I now need to check the list of ambiences from the db every time, but luckily QML has nice support for that.

matrixx ( 2014-03-30 20:47:44 +0300 )edit

@Markkyboy Since you already are familiar with the database, did you try to make changes there and have something permanently changed?

I fiddled a bit and changed highlightColors of existing ambiences, but failed to save the changes permanently. My changes stayed in the db as long as I didn't change to the exact ambience I changed values from. When I changed to that, the values were reverted to original. No COMMIT + CHECKPOINT + VACUUM even didn't made the changes permanent.

matrixx ( 2014-03-30 23:18:25 +0300 )edit

@matrixx - Cool, glad that was of some use to you, I do hate passing on duff information, plus there is always the danger of being 'down voted'! :D

Anyway, to answer your question - No. I haven't played with the files as I was looking to create a simple black and white theme which I've achieved through using Schturman's ambience changer from warehouse repos, but only to see what files it' produces and where it dumps them in the system.

So in the first folder layout you mentioned 'usr/share/ambience/ is where I added/made a few changes and Bingo!, all black ambience with white/grey highlights.

See the 3rd 'answer' down this page for Black & White ambience;

I think you need to create appropriate folders in /usr/share/ambience/**** <------- here, along with other currently installed ambience. I get the impression that the sqlite file is always changing, like a temporary 'working out' area - I don't know, I'm no expert! :)


Edz ( 2014-03-31 15:42:34 +0300 )edit

@Markkyboy, thanks for the tips again. I just feel there's redundancy if I need to copy all the custom ambience stuff under /usr/share/ambience/ to be able to modify them. Actually I managed to save some other values in the ambienced db permanently such as ringerVolume. I guess the ambience color values (highlightColor etc.) are always generated from the image on the fly.. again and again. Might be a process we can't affect. Anyway I was only looking to list the available ambiences, so I'm ok :)

matrixx ( 2014-04-01 09:17:19 +0300 )edit