getting-things-gnome/gtg

Offer GNOME Shell dash app launcher menu action for creating a new task with the Task Editor

nekohayo opened this issue · 0 comments

Some apps like Builder, Evolution, Firefox, Epiphany and Ptyxis have custom menu actions available from their desktop launcher:

image

While not critical to have, it would be a neat integration feature if GTG offered an action to directly open a new Task Editor window, without needing to focus the main GTG window, to directly create a new task from anywhere else on the desktop.

In terms of implementation, this seems to be mostly a combination of .desktop file properties tied to commandline arguments/parameters, and then tying this with the right GTG function. For example, GNOME Builder's .desktop file contains, among other things:

Actions=new-window;create-project;clone-repo;new-editor;dspy;

[Desktop Action new-window]
Name[ca]=Obre un projecte
Name[cs]=Otevřít projekt
Name[da]=Åbn et projekt
Name[de]=Ein Projekt öffnen
Name[el]=Άνοιγμα έργου
Name[en_GB]=Open a Project
(blah blah blah)
Name=Open a Project
Exec=gnome-builder --greeter

[Desktop Action create-project]
Name[ca]=Comença un projecte nou
Name[cs]=Začít nový projekt
Name[da]=Start nyt projekt
Name[de]=Neues Projekt beginnen
Name[el]=Έναρξη νέου έργου
Name[en_GB]=Start New Project
(blah blah blah)
Name=Start New Project
Exec=gnome-builder --create-project