Skip to content

Commit

Permalink
Correctly install AccountsService interface file as symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-ancell committed Feb 13, 2018
1 parent 22a130c commit f57919d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ LT_INIT
AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_LIBTOOL
AC_PROG_LN_S
AC_PROG_MKDIR_P
AM_MAINTAINER_MODE

dnl Check if the compiler really supports `-std=c99`.
Expand Down
13 changes: 10 additions & 3 deletions data/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,16 @@ dist_apparmor_profile_abstractions_DATA = \
apparmor/abstractions/lightdm \
apparmor/abstractions/lightdm_chromium-browser

accountsservicedir = $(datadir)/accountsservice/interfaces
dist_accountsservice_DATA = \
org.freedesktop.DisplayManager.AccountsService.xml
accountsservice_interface = org.freedesktop.DisplayManager.AccountsService.xml

dbusdir = $(datadir)/dbus-1/interfaces
dist_dbus_DATA = \
$(accountsservice_interface)

# AccountsService requires D-Bus interfaces to be symlinked
install-exec-hook:
$(MKDIR_P) $(DESTDIR)$(datadir)/accountsservice/interfaces
$(LN_S) ../../dbus-1/interfaces/$(accountsservice_interface) $(DESTDIR)$(datadir)/accountsservice/interfaces/$(accountsservice_interface)

polkitdir = $(datadir)/polkit-1/actions
polkit_in_files = org.freedesktop.DisplayManager.AccountsService.policy.in
Expand Down

0 comments on commit f57919d

Please sign in to comment.