Dash-to-dock: Add to favorites programmatically

Created on 17 Jan 2018  路  4Comments  路  Source: micheleg/dash-to-dock

I am looking for a way to add icons to dash to dock in an automated way. I would use this sort of behavior for an initial set up of my system. I can't seem to find anything on this topic by searching Google. I also dug through dconf to see if there is anything in there.

The question is, where does dash to dock keep these settings? Are these editable through terminal so I can set icons on my dock?

Most helpful comment

I was about to answer as well... Here is an example:

dconf write /org/gnome/shell/favorite-apps "['org.gnome.Nautilus.desktop', 'firefox.desktop', 'rhythmbox.desktop']"

To simply get the string:

dconf read /org/gnome/shell/favorite-apps

All 4 comments

Hi,

I think that the favorite apps are saved by the shell itself in
gsettings get org.gnome.shell favorite-apps
so you should be able to add programmatically application via gsetting set.

I was about to answer as well... Here is an example:

dconf write /org/gnome/shell/favorite-apps "['org.gnome.Nautilus.desktop', 'firefox.desktop', 'rhythmbox.desktop']"

To simply get the string:

dconf read /org/gnome/shell/favorite-apps

@franglais125 Ah yes, that was it. Thank you so much!

works here, thanks @franglais125

Was this page helpful?
0 / 5 - 0 ratings