Implement the Desktop Action specification
authorRyan Lortie <desrt@desrt.ca>
Thu, 11 Jul 2013 16:46:59 +0000 (12:46 -0400)
committerRyan Lortie <desrt@desrt.ca>
Thu, 11 Jul 2013 16:48:08 +0000 (12:48 -0400)
commit6dc5c118e4e52d6a6abaed4d6191fe655917ee4d
tree9aff999aa6eba58db150bbbbad386d125c272cac
parentf77e1216500986ae60b42a77e25717e1710c6013
Implement the Desktop Action specification

For some time, the desktop file specification has supported "additional
application actions".  This is intended to allow for additional methods
of starting an app, such as a mail client having a "Compose New Message"
action that brings up the compose window instead of the folder list.

This patch adds support for this with a relatively minimal API.

In the case that the application is a GApplication and DBusActivatable,
desktop actions are translated into GActions that have been added to the
application with g_action_map_add_action().  This more or less closes
the loop on being able to activate an application with an action
invocation (instead of 'activate').

https://bugzilla.gnome.org/show_bug.cgi?id=664444
docs/reference/gio/gio-sections.txt
gio/gdesktopappinfo.c
gio/gdesktopappinfo.h
gio/tests/Makefile.am
gio/tests/desktop-app-info.c
glib/gkeyfile.h