I can tell the file browser what application to open when I double-click a document, but can I also tell it what command line options to always use when opening that kind of document?
1 Answer
Yes, you can. By editing desktop application file (application/x-desktop) especially the Exec
field.
You can start by choosing, for example, nautilus.desktop
to be edited. Your desktop file usually located on /usr/share/applications/
. Find the one you want to edit.
Open terminal and type up :
cp /usr/share/applications/nautilus.desktop ~/.local/share/applications/
Open the file with gedit through terminal :
gedit ~/.local/share/applications/nautilus.desktop
Find
Exec
field and change the argument as you want. For example :... Exec=nautilus --no-default-window --new-window %U ...
Save it. Done.