Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

I set up Ubuntu with Docky and Xfce for my mother. But sometimes she accidentially removes Apps from Docky by letting them "drop" on the desktop.

Is there a way to lock docky, so the programs can't be removed that easily?

share|improve this question
up vote 2 down vote accepted

Yes, Docky provides a Kiosk Mode:

Docky would be a wonderful addition to an interactive kiosk environment, allowing you to have a beautiful interface to launch the apps your kiosk provides.

In this environment you generally want a read only interface. To achieve this in Docky, you will have to set several GConf values:

gconftool-2 --set --type boolean /apps/docky-2/Docky/Items/DockyItem/ShowSettings false
gconftool-2 --set --type boolean /apps/docky-2/Docky/Items/DockyItem/ShowQuit false
gconftool-2 --set --type boolean /apps/docky-2/Docky/Items/FileApplicationProvider/AllowPinToDock false
gconftool-2 --set --type boolean /apps/docky-2/Docky/Interface/DockDragTracker/ProvidersAcceptDrops false
gconftool-2 --set --type boolean /apps/docky-2/Docky/Interface/DockDragTracker/LockDrags true

Since the Docky icon now does nothing when left clicked, you will also want to either set:

gconftool-2 --set --type boolean /apps/docky-2/Docky/Items/DockyItem/ShowDockyItem false

which entirely hides the Docky icon or set a new action for clicking the Docky icon:

gconftool-2 --set --type boolean /apps/docky-2/Docky/Items/DockyItem/DockyItemCommand "/some/command"

Once these are set, restart Docky. Docky will now disallow dragging (or removing) icons from the dock, have no way to add items to the dock and have no way of accessing the settings dialog!

Please note that some docklets might expose their own settings dialogs/configuration via their popup menus (GMail, Weather, NPR, Clock, etc). Also some docklets will let you modify the system state (NetworkManager, Session, etc). You might want to think hard about each docklet you add to a kiosk environment!

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.