From 49d84aed94cb22023ab9c4bcb82bd065f9fcfbbe Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 26 Apr 2016 11:50:16 +0200 Subject: We don't actually need the introspection data in the resource All the required stuff are in the generated code anyway. --- system-helper/Makefile.am.inc | 14 -------------- system-helper/xdg-app-system-helper.c | 9 --------- system-helper/xdg-app.gresource.xml | 6 ------ 3 files changed, 29 deletions(-) delete mode 100644 system-helper/xdg-app.gresource.xml (limited to 'system-helper') diff --git a/system-helper/Makefile.am.inc b/system-helper/Makefile.am.inc index 60a377a..8de452c 100644 --- a/system-helper/Makefile.am.inc +++ b/system-helper/Makefile.am.inc @@ -1,17 +1,7 @@ -system_helper_resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/system-helper/xdg-app.gresource.xml) - libexec_PROGRAMS += \ xdg-app-system-helper \ $(NULL) -system-helper/xdg-app-resources.h: system-helper/xdg-app.gresource.xml - $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \ - --target=$@ --sourcedir=$(srcdir) --c-name _gtk --generate-header - -system-helper/xdg-app-resources.c: system-helper/xdg-app.gresource.xml $(system_helper_resource_files) - $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \ - --target=$@ --sourcedir=$(srcdir) --c-name _gtk --generate-source - dbussystemservicedir = $(datadir)/dbus-1/system-services service_in_files += system-helper/org.freedesktop.XdgApp.SystemHelper.service.in dbussystemservice_DATA = system-helper/org.freedesktop.XdgApp.SystemHelper.service @@ -22,12 +12,8 @@ dbusconf_DATA = system-helper/org.freedesktop.XdgApp.SystemHelper.conf service_in_files += system-helper/xdg-app-system-helper.service.in systemdsystemunit_DATA = system-helper/xdg-app-system-helper.service -EXTRA_DIST += system-helper/xdg-app.gresource.xml - xdg_app_system_helper_SOURCES = \ system-helper/xdg-app-system-helper.c \ - system-helper/xdg-app-resources.h \ - system-helper/xdg-app-resources.c \ lib/xdg-app-error.c \ $(NULL) diff --git a/system-helper/xdg-app-system-helper.c b/system-helper/xdg-app-system-helper.c index 0404022..81df38c 100644 --- a/system-helper/xdg-app-system-helper.c +++ b/system-helper/xdg-app-system-helper.c @@ -31,7 +31,6 @@ #include "lib/xdg-app-error.h" static PolkitAuthority *authority = NULL; -static GDBusNodeInfo *introspection_data = NULL; #ifndef glib_autoptr_cleanup_PolkitAuthorizationResult G_DEFINE_AUTOPTR_CLEANUP_FUNC(PolkitAuthorizationResult, g_object_unref) @@ -290,7 +289,6 @@ main (int argc, { guint owner_id; GMainLoop *loop; - GBytes *introspection_bytes; g_autoptr(GError) error = NULL; setlocale (LC_ALL, ""); @@ -306,11 +304,6 @@ main (int argc, return 1; } - introspection_bytes = g_resources_lookup_data ("/org/freedesktop/XdgApp/org.freedesktop.XdgApp.xml", 0, NULL); - g_assert (introspection_bytes != NULL); - - introspection_data = g_dbus_node_info_new_for_xml (g_bytes_get_data (introspection_bytes, NULL), NULL); - owner_id = g_bus_own_name (G_BUS_TYPE_SYSTEM, "org.freedesktop.XdgApp.SystemHelper", G_BUS_NAME_OWNER_FLAGS_NONE, @@ -325,7 +318,5 @@ main (int argc, g_bus_unown_name (owner_id); - g_dbus_node_info_unref (introspection_data); - return 0; } diff --git a/system-helper/xdg-app.gresource.xml b/system-helper/xdg-app.gresource.xml deleted file mode 100644 index 492189a..0000000 --- a/system-helper/xdg-app.gresource.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - data/org.freedesktop.XdgApp.xml - - -- cgit v1.2.1