[gnome-packagekit] trivial: Launch the update viewer when clicking the app bar
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] trivial: Launch the update viewer when clicking the app bar
- Date: Fri, 11 May 2012 16:16:47 +0000 (UTC)
commit a81531b013f9de4c954968d5858bb56af7d56b01
Author: Richard Hughes <richard hughsie com>
Date: Fri May 11 15:56:50 2012 +0100
trivial: Launch the update viewer when clicking the app bar
src/gpk-application.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 678a76e..8e32257 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -3490,8 +3490,19 @@ gpk_application_activate_updates_cb (GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
{
- //GpkApplicationPrivate *priv = user_data;
- // TODO: launch the update program
+ gboolean ret;
+ gchar *command;
+ GError *error = NULL;
+
+ command = g_build_filename (BINDIR, "gpk-update-viewer", NULL);
+ g_debug ("running: %s", command);
+ ret = g_spawn_command_line_async (command, &error);
+ if (!ret) {
+ g_warning ("spawn of %s failed: %s", command, error->message);
+ g_error_free (error);
+ }
+ g_free (command);
+
}
static GActionEntry gpk_menu_app_entries[] = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]