I administrate our system at school. I want to group apps by subject in the app-picker and it works fine for my admin-user. However I want to keep this layout for all users.

I tried to set up a dconf database and put the value of my current configuration in it


and added a lock on that value. (As described here: How to change default dock applications for new users?)

If I log in as a student or a teacher, I still see all the apps now without any groups and I am unable to change anything because of the dconf-lock.

Probably I used the wrong key for the gsettings.

Does anyone have an idea how to keep these groups for all users on the computer?

Thanks a lot in advance!

1 Answer 1


I found it out myself:

First there has to be a new dconf-database located in /etc/dconf/.

Create the database by creating the following file:

sudo nano /etc/dconf/profile/user

with the following content:


This shows gnome, where your settings are stored.

Next define, what your profile looks like. To do so create the following folder and file

sudo mkdir /etc/dconf/db/local.d
sudo nano /etc/dconf/db/local.d/my_style

and put something like this in:


apps=['app1.desktop', 'app2.desktop']

app-picker-layout=[{'firefox.desktop': <{'position': <0>}>,'myfolder': <{'position': <1>}>}]

Then put a lock on these settings to keept the changes (however then they cannot be changed)

sudo mkdir /etc/dconf/db/local.d/locks
sudo nano /etc/ dconf/db/local.d/locks/mystyle

with the following content:


Finally reload your dconf:

sudo dconf update

Login, logout. Done.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.