Blob Blame History Raw
From 2f45453fa14b06cf2d834c6bb4613f2895c93508 Mon Sep 17 00:00:00 2001
From: Vladimir Didenko <cow@altlinux.org>
Date: Thu, 15 Dec 2016 21:43:00 +0300
Subject: [PATCH] Move pam-helper binary to libexec directory - some distros
 forbid ELF binaries in /usr/share

---
 src/pamhelper/Makefile.am   | 2 +-
 src/pamhelper/authClient.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pamhelper/Makefile.am b/src/pamhelper/Makefile.am
index 0db1f28..ec0ccde 100644
--- a/src/pamhelper/Makefile.am
+++ b/src/pamhelper/Makefile.am
@@ -11,7 +11,7 @@ pamhelper_PYTHON = \
     authClient.py \
     $(NULL)
 
-pamhelper_PROGRAMS = \
+libexec_PROGRAMS = \
     cinnamon-screensaver-pam-helper \
     $(NULL)
 
diff --git a/src/pamhelper/authClient.py b/src/pamhelper/authClient.py
index 3e5a305..681c335 100644
--- a/src/pamhelper/authClient.py
+++ b/src/pamhelper/authClient.py
@@ -35,7 +35,7 @@ def initialize(self):
             return True
 
         try:
-            path = os.path.join(config.pkgdatadir, "pamhelper", "cinnamon-screensaver-pam-helper")
+            path = os.path.join(config.libexecdir, "cinnamon-screensaver-pam-helper")
 
             if status.Debug:
                 argv = (path, "--debug", None)