Plank Docklets

Asked by Joao Pedro

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:
Last query:
Last reply:
Revision history for this message
Rico Tzschichholz (ricotz) said :
#1

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

Revision history for this message
Joao Pedro (perfilvisivel) said :
#2

could you explain for example to trash?

Revision history for this message
Best Rico Tzschichholz (ricotz) said :
#3

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

[PlankDockItemPreferences]
Launcher=docklet://trash

Revision history for this message
Вадим (vapustovoyt) said :
#4

how about desktop docklet?

Revision history for this message
Rico Tzschichholz (ricotz) said :
#5

What would currently work are those URIs:

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

Revision history for this message
QinYingkai (q1y2k3) said :
#6

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

Revision history for this message
Rico Tzschichholz (ricotz) said :
#7

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

Revision history for this message
Joao Pedro (perfilvisivel) said :
#8

Update.
Trash working perfectly. TOPPPPPPPPPPPP.
Great update.

Revision history for this message
Joao Pedro (perfilvisivel) said :
#9

Thanks Rico Tzschichholz, that solved my question.

Revision history for this message
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!!

Revision history for this message
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.