summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2015-08-09 10:43:52 +0300
committerEric Koegel <eric.koegel@gmail.com>2015-08-09 10:46:18 +0300
commitbee63889f4a0b8f57807a61d8396346cec8cd5b1 (patch)
tree1fe1a9471a4217eec28ecd5ee995c17d361c3160 /tools
parent5d4296bbf60e56a7d5891f107158106b66b8ca63 (diff)
downloadConsoleKit2-bee63889f4a0b8f57807a61d8396346cec8cd5b1.tar.gz
Minor code refactoring
This removes and cleans up some duplicated code. Both the ck-manager and the ck-session had an implementation to get the calling uid/pid so it's now moved to a common location. The inhibit changed signal has been made more explicit in when the delay is removed. The polkit permissions was duplicated over two functions and has been moved to a single common one. So this patch is just minor house keeping.
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 81f4d1f..69dd1eb 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -131,6 +131,7 @@ ck_collect_session_info_SOURCES = \
$(NULL)
ck_collect_session_info_LDADD = \
+ $(CONSOLE_KIT_LIBS) \
$(TOOLS_LIBS) \
$(top_builddir)/src/libck.la \
$(NULL)
@@ -140,6 +141,7 @@ ck_get_x11_server_pid_SOURCES = \
$(NULL)
ck_get_x11_server_pid_LDADD = \
+ $(CONSOLE_KIT_LIBS) \
$(TOOLS_LIBS) \
$(XLIB_LIBS) \
$(top_builddir)/src/libck.la \
@@ -150,6 +152,7 @@ ck_get_x11_display_device_SOURCES = \
$(NULL)
ck_get_x11_display_device_LDADD = \
+ $(CONSOLE_KIT_LIBS) \
$(TOOLS_LIBS) \
$(top_builddir)/src/libck.la \
$(NULL)