Plank Docklets

Asked by Joao Pedro on 2015-11-08

Hi there,

How can i use plank docklets? i was trying to add trash but it doesnt make nothing when i click on it.
Tks

Question information

Language:
French (France) Edit question
Status:
Solved
For:
Plank Edit question
Assignee:
No assignee Edit question
Solved by:
Rico Tzschichholz
Solved:
2015-11-15
Last query:
2015-11-15
Last reply:
2015-11-15
Rico Tzschichholz (ricotz) said : #1

Currently you will have to create a dockitem file and set the launcher to "docklet://trash" in your example.

Joao Pedro (perfilvisivel) said : #2

could you explain for example to trash?

Best Rico Tzschichholz (ricotz) said : #3

Create a file "trash.dockitem" in "~/.config/plank/dock1/launchers" with the following content

[PlankDockItemPreferences]
Launcher=docklet://trash

Вадим (vapustovoyt) said : #4

how about desktop docklet?

Rico Tzschichholz (ricotz) said : #5

What would currently work are those URIs:

docklet://clippy
docklet://clock
docklet://desktop
docklet://trash

QinYingkai (q1y2k3) said : #6

Empty Trash doesn't work , and the status of trash always No item in Trash

Rico Tzschichholz (ricotz) said : #7

@q1y2k3: Which desktop-environment and file-manager are you using?

Joao Pedro (perfilvisivel) said : #8

Update.
Trash working perfectly. TOPPPPPPPPPPPP.
Great update.

Joao Pedro (perfilvisivel) said : #9

Thanks Rico Tzschichholz, that solved my question.

Erik Zoltan (erikzoltan) said : #10

How do you remove the docklets once they have been added? I can add them, but now they won't go away!!

Erik Zoltan (erikzoltan) said : #11

OK now I see that I can delete the config file manually (e.g. ~/.config/plank/dock1/launchers/trash.dockitem) and it will go away. It's impressive that it vanishes from the dock the second I remove the config file without having to relaunch or refresh.

It would be nice if the docklets config tab supported this somehow. For example, I double click on Trash to add it to the dock. If I could simply double click again to remove it, that would be fine. And/or if the existing popup menu for the trash item (and other docklets) also allowed me to remove it.