You can drag the icons on the dock and put them in and out, but is there any way of locking them so you can't do this?

2 Answers 2


Yes, this is possible. You can open the dock's preferences by right-clicking on a free space of the dock. Probably you will need several tries not to open context menu from an icon - but believe me, there are preferences:

enter image description here

For me the easiest way to open the preference window was the rightmost bottom of the dock (for bottom-placed dock). In the 'behaviour' tab you can lock the icons.

  • 2
    I can't stop wondering why this is not in settings > desktop > dock, but ok. Thanks!
    – jacosro
    May 1, 2016 at 18:21
  • 3
    you can you the command plank --preferences
    – user170
    May 3, 2016 at 7:55

As a complement to the other answer:

The command for the Plank settings UI is:

plank --preferences.

To find that with your applications launcher in the future (using gedit text editor):

sudo gedit /usr/share/applications/plank_preferences.desktop

then paste this & save:

[Desktop Entry]
Name=Plank Settings
Exec=plank --preferences

enter image description here

To make changes like the one you mention one can also edit the file ~/.config/plank/dock1/settings which contains detailed description of the possible options. To lock the icons go to line

#Whether to prevent drag'n'drop actions and lock items on the dock.

and change that to true.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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