How to restore default ambiances

Hello,

I accidently delete a default ambiance from the settings menu and i want to restore it.
How i can do that ?

Thank you in advance for your answer.

Do you know the name of the ambience you removed?

Using terminal, either on your device or via SSH, you should be able to list and reinstall the ambience you lost.

to find an ambience package; (see names in the list for ambience name)

devel-su pkcon search ambience

to remove a specific ambience package; (in this ex. air-ambience)

devel-su pkcon remove sailfish-content-ambiences-default-air

to complete the removal of the above package or restart ambience service;

devel-su systemctl --user restart ambienced

to install the above or other package;

devel-su pkcon install sailfish-content-ambiences-default-air
2 Likes

Ambiences are managed for the user in ~/.local/share/system/privileged/Ambienced/ambienced.sqlite

I guess to reset everything to default, you could do

systemctl --user stop ambienced
devel-su -p rm  ~/.local/share/system/privileged/Ambienced/ambienced.sqlite{,-wal,-shm}
systemctl --user start ambienced
/usr/lib/oneshot.d/trigger-ambience-update

If you’re fine with doing some SQL, here’s the difference of my ambienced.sqlite before and after removing the “Vigurous” ambience:


--- /home/nemo/amb_before_remove.sql   2025-05-16 12:26:50.073234850 +0200
+++ /home/nemo/amb_after_remove.sql     2025-05-16 12:27:36.273018853 +0200
@@ -212,7 +212,6 @@
 INSERT INTO ambience VALUES(18,0,0,'/usr/share/ambience/salamander/images/ambience_salamander.jpg',NULL,'#FFFF8380','#B0FF8380','#FFFFFFFF','#FFBABABA','2015-01-01T07:00:00',-1,-1,NULL,NULL,NULL,NULL,2);
 INSERT INTO ambience VALUES(19,0,0,'/usr/share/ambience/silent/images/ambience_silent.jpg',NULL,'#ff66a8ff','#ff8569db','#FFFFFFFF','#FFBABABA','2015-01-01T10:00:00',0,-1,NULL,NULL,NULL,NULL,2);
 INSERT INTO ambience VALUES(20,0,0,'/usr/share/ambience/urban/images/ambience_urban.jpg',NULL,'#ff7fcafe','#ff66a1cb','#FFFFFFFF','#FFBABABA','2015-01-01T04:00:00',-1,-1,NULL,NULL,NULL,NULL,2);
-INSERT INTO ambience VALUES(21,0,0,'/usr/share/ambience/vigorous/images/ambience_vigorous.jpg',NULL,'#fffeaf6d','#ffd4855a','#FFFFFFFF','#FFBABABA','2015-01-01T01:00:00',-1,-1,NULL,NULL,NULL,NULL,2);
 INSERT INTO ambience VALUES(22,1,0,'/usr/share/ambience/water/images/ambience_water.jpg',NULL,'#FF7FF0FE','#FF62B9C4','#FFFFFFFF','#FFBABABA','2021-01-25T00:00:03',-1,-1,NULL,NULL,NULL,NULL,3);
 INSERT INTO ambience VALUES(23,0,0,'/usr/share/ambience/work/images/ambience_work.jpg',NULL,'#ff80e1fe','#ff64bbc7','#FFFFFFFF','#FFBABABA','2015-01-01T13:00:00',-1,-1,NULL,NULL,NULL,NULL,2);
 INSERT INTO ambience VALUES(68,1,0,'/usr/share/ambience/flare/images/ambience_flare.jpg','/home/nemo/.cache/ambienced/com/jolla/components/bgimages/bd7f049fap.jpg','#FFFE9A80','#FFC47662','#FFFFFFFF','#FFBABABA','2024-11-07T18:13:05Z',-1,-1,NULL,NULL,NULL,NULL,3);
2 Likes

Thanks @Edz and @nephros for your help