We're deploying desktops via PXE/Preseed installations, and I'd like to change the default applications list in dock for new users.
After a fresh install using preseed, a late_command script creates the .desktop files that we need. The apps are present in the activities panel. Now I'd like to create links in the Dock, for all users by default.
I tried the following :
/etc/dconf/profile/mycompany file :
[org/gnome/shell] favorite-apps = ['firefox.desktop', 'org.gnome.Nautilus.desktop', 'org.gnome.gedit.desktop', 'org.gnome.Terminal.desktop', 'libreoffice-writer.desktop', 'org.remmina.Remmina.desktop', 'keepass2.desktop', 'yelp.desktop']
And finaly :
sudo dconf update (which correctly creates the /etc/dconf/db/mycompany file)
Yet if I create a new user, and login as this newly created user, I still get the old favorites links. Nothing changed.
I also tried to add a
01-mycompany-settings file in the existing directory
dconf update, without success. I also tried to add the configuration lines in
/etc/dconf/db/ibus.d/00-upstream-settings, no change.
If I run
dconf read /org/gnome/shell/favorite-apps as a new user, first I get nothing (since, I suppose, the user's db does not exists yet and the user has no rigths to read the system db). After adding manually an app to the favorite apps, then it always returns the defaults apps list plus the app I added manualy.