Launch programs with options

Asked by Thomas L

Is it possible to add a dock item that opens a program with specific options? For instance, launch "libreoffice --writer <myfile>"?

Question information

English Edit question
Plank Edit question
No assignee Edit question
Solved by:
Rico Tzschichholz
Last query:
Last reply:
Revision history for this message
Best Rico Tzschichholz (ricotz) said :

Usually this would need a custom desktop-file with a tweaked Exec compared to the original one. In your case while opening a specific file you can simply pin this file to the dock. Note you can add any file with drag'n'drop to plank.

Revision history for this message
Thomas L (thlamant) said :

Thanks Rico !
My first attempt was: open Libreoffice, file>open specific file, click on "Keep in dock" but that didn't work.
The appropriate way is indeed to drag and drop the file directly to plank.