Launch programs with options

Asked by Thomas L

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

Question information

Language:
English 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
Best Rico Tzschichholz (ricotz) said :
#1

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 :
#2

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.