summaryrefslogtreecommitdiff
path: root/lib/test-lib.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-12-17 20:33:02 +0100
committerAlexander Larsson <alexl@redhat.com>2015-12-17 20:34:25 +0100
commit874fce2b775960afaf6e8e56f12ad5ff4cfad58b (patch)
treed63ecd6fa12cd178bd1c4e1c094cdba522076faf /lib/test-lib.c
parente7903a8033052751d3f9be20558dd29c3dcec738 (diff)
downloadxdg-app-874fce2b775960afaf6e8e56f12ad5ff4cfad58b.tar.gz
lib: Move app launching to XdgAppInstallation
Diffstat (limited to 'lib/test-lib.c')
-rw-r--r--lib/test-lib.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/test-lib.c b/lib/test-lib.c
index cd5d49a..1e782d8 100644
--- a/lib/test-lib.c
+++ b/lib/test-lib.c
@@ -133,7 +133,7 @@ main (int argc, char *argv[])
}
g_print ("\n**** Getting installed gedit master\n");
- app1 = xdg_app_installation_get_installed_ref (installation,
+ app1 = xdg_app_installation_get_installed_ref (installation,
XDG_APP_REF_KIND_APP,
"org.gnome.gedit",
NULL, "master", NULL, NULL);
@@ -148,7 +148,14 @@ main (int argc, char *argv[])
xdg_app_installed_ref_get_origin (app1),
xdg_app_installed_ref_get_deploy_dir (app1),
xdg_app_installed_ref_get_is_current (app1));
- xdg_app_installed_ref_launch (app1, NULL, NULL);
+ }
+ if (!xdg_app_installation_launch (installation,
+ "org.gnome.gedit",
+ NULL, NULL, NULL,
+ NULL, &error))
+ {
+ g_print ("launch gedit error: %s\n", error->message);
+ g_clear_error (&error);
}
g_print ("\n**** Getting current installed gedit\n");