I am using Unity. The Quicklists feature is really useful. I added some entries in the nautilus quicklist from Ubuntu Tweak. Those commands were easy to figure out.
But now i do not know how to find the commands that should be used to add a quicklist.
Every app has different way of a command.
For example:
While nautilus commands are like- nautilus /home/username/Music
.
Chrome commands are completely different. like this- /opt/google/chrome/google-chrome
Now how do i figure out them for applications which do not have any by default?
Best Answer
it is very easy
you must add a line like this
X-Ayatana-Desktop-Shortcuts=XXXXX;XXXXX;XXXXX
hereXXXXX
is name in[ ]
exceptShortcut Group
now for example,
you can give any name in between
[ ]
like here isNewIncognito Shortcut Group
. but you must writeShortcut Group
after name. it means that you can give any name in[NewIncognito Shortcut Group]
in place ofNewIncognito
only.Name=
Can be anything but meaningful to know what it does.Exec=
is path to that executable(only if the directory is not inPATH
variable) file likeExec=/opt/google/chrome/google-chrome
now the actual thing which is main thing for all this fuzz is parameter passed while opening the executable. here it is
--incognito
.You always know which executable you want to start but your main problem is
Which parameter to use? or how do I know to use this one or that one?
just open terminal
cd
(no need tocd
to dir if it's in yourPATH
variable) to directory where your executable is located.now write name of your executable file(here is
google-chrome
) and then write--help
. so You would typegoogle-chrome --help
this will show you different options or parameters which can be passed and other info about them. here is output
this output is very long and i should not paste all here.
google-chrome --help
opensmanpage
actually. but most of the time only text output is given in terminal.lets take example of banshee
if you run
banshee --help
it give something likethey have divided help category wise. Now I want to know options for playback so I will type
which shows,
Now you know how to make it play next or previous or pause. So you can create entries like
Exec=banshee --next
for next songExec=banshee --pause
to pause songExec=banshee --previous
to Play the previous track