diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-12-07 13:36:39 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-12-07 13:36:39 +0100 |
commit | 5b1931dc8dc7bb6d3d152d8158b2c4f39e0ab307 (patch) | |
tree | 9418a165c986f36939484c5b5b29571d226b3381 /lib/test-lib.c | |
parent | 000c59f60eedd64cba731906d372fa8e67844e54 (diff) | |
download | xdg-app-5b1931dc8dc7bb6d3d152d8158b2c4f39e0ab307.tar.gz |
lib: Add xdg_app_installed_ref_launch()
Diffstat (limited to 'lib/test-lib.c')
-rw-r--r-- | lib/test-lib.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/lib/test-lib.c b/lib/test-lib.c index 86e8532..8244258 100644 --- a/lib/test-lib.c +++ b/lib/test-lib.c @@ -54,15 +54,18 @@ main (int argc, char *argv[]) "org.gnome.gedit", NULL, "master", NULL, NULL); if (app1) - g_print ("gedit master: %d %s %s %s %s %s %s %d\n", - xdg_app_ref_get_kind (XDG_APP_REF(app1)), - xdg_app_ref_get_name (XDG_APP_REF(app1)), - xdg_app_ref_get_arch (XDG_APP_REF(app1)), - xdg_app_ref_get_version (XDG_APP_REF(app1)), - xdg_app_ref_get_commit (XDG_APP_REF(app1)), - xdg_app_installed_ref_get_origin (app1), - xdg_app_installed_ref_get_deploy_dir (app1), - xdg_app_installed_ref_get_current (app1)); + { + g_print ("gedit master: %d %s %s %s %s %s %s %d\n", + xdg_app_ref_get_kind (XDG_APP_REF(app1)), + xdg_app_ref_get_name (XDG_APP_REF(app1)), + xdg_app_ref_get_arch (XDG_APP_REF(app1)), + xdg_app_ref_get_version (XDG_APP_REF(app1)), + xdg_app_ref_get_commit (XDG_APP_REF(app1)), + xdg_app_installed_ref_get_origin (app1), + xdg_app_installed_ref_get_deploy_dir (app1), + xdg_app_installed_ref_get_current (app1)); + xdg_app_installed_ref_launch (app1, NULL, NULL); + } app2 = xdg_app_installation_get_current_installed_app (installation, "org.gnome.gedit", |