Launch programs with options

Asked by Thomas L on 2016-01-10

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:
2016-01-10
Last query:
2016-01-10
Last reply:
2016-01-10
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.

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.