Do

How can I add a custom launcher to gnome-do?

Asked by fermulator

I'd like to be able to add a custom launcher (or shortcut) to gnome-do, how can this be done?

Question information

Language:
English Edit question
Status:
Solved
For:
Do Edit question
Assignee:
No assignee Edit question
Solved by:
fermulator
Solved:
Last query:
Last reply:
Revision history for this message
fermulator (fermulator) said :
#1

Apparently, gnome-do will automatically index $HOME/.local/share/applications.

Simply create your own custom foobar.desktop, make it executable, and drop it in that directory!

Example:
 * I wanted to create a "compose e-mail" launcher shortcut so that I could easily compose a new e-mail with gnome-do. Ideally, I could do: "Super+Space", type: "new" or "e-mail", and gnome-do would learn I mean "new e-mail" which would launch the compose e-mail window in thunderbird.

Here's how I did this.
 1) In ~/.local/share/applications, created the following file:
new_e-mail.desktop
{{{
[Desktop Entry]
Name=New E-mail
Comment=Launch the "compose e-mail" window in thunderbird
TryExec=thunderbird
Exec=thunderbird -compose
Icon=thunderbird
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;GNOME;Utility;
NotShowIn=KDE;
Name[en_CA]=new e-mail
}}}
 2) Make it executable:
{{{
chmod a+x ~/.local/share/applications/new_e-mail.desktop
}}}
 3) Done.
 4) Launch the "compose e-mail" with:
      - Super+Space
      - type: "new"... or "e-mail"... and gnome-do quickly knows what you mean.