Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I add an application shortcut to a panel in gnome-classic, using the command line?

I used dconf watch / to see what was happening when I did it by hand, but when I try reproducing that myself:

dmd@rossum:~ $ dconf write '/org/gnome/gnome-panel/layout/objects/test1234/object-iid' 'PanelInternalFactory::Launcher'
error: 0-1:unknown keyword

I run into trouble right away.

How can I add (e.g.) a terminal launcher icon to a panel using the command line?

share|improve this question
up vote 0 down vote accepted
# add terminal launcher to the bar
dconf load /org/gnome/gnome-panel/layout/objects/terminal/ << EOT

dconf write /org/gnome/gnome-panel/layout/object-id-list "$(dconf read /org/gnome/gnome-panel/layout/object-id-list | sed "s/]/, 'terminal']/")"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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