4ae39ae
From 2f45453fa14b06cf2d834c6bb4613f2895c93508 Mon Sep 17 00:00:00 2001
4ae39ae
From: Vladimir Didenko <cow@altlinux.org>
4ae39ae
Date: Thu, 15 Dec 2016 21:43:00 +0300
4ae39ae
Subject: [PATCH] Move pam-helper binary to libexec directory - some distros
4ae39ae
 forbid ELF binaries in /usr/share
4ae39ae
4ae39ae
---
4ae39ae
 src/pamhelper/Makefile.am   | 2 +-
4ae39ae
 src/pamhelper/authClient.py | 2 +-
4ae39ae
 2 files changed, 2 insertions(+), 2 deletions(-)
4ae39ae
4ae39ae
diff --git a/src/pamhelper/Makefile.am b/src/pamhelper/Makefile.am
4ae39ae
index 0db1f28..ec0ccde 100644
4ae39ae
--- a/src/pamhelper/Makefile.am
4ae39ae
+++ b/src/pamhelper/Makefile.am
4ae39ae
@@ -11,7 +11,7 @@ pamhelper_PYTHON = \
4ae39ae
     authClient.py \
4ae39ae
     $(NULL)
4ae39ae
 
4ae39ae
-pamhelper_PROGRAMS = \
4ae39ae
+libexec_PROGRAMS = \
4ae39ae
     cinnamon-screensaver-pam-helper \
4ae39ae
     $(NULL)
4ae39ae
 
4ae39ae
diff --git a/src/pamhelper/authClient.py b/src/pamhelper/authClient.py
4ae39ae
index 3e5a305..681c335 100644
4ae39ae
--- a/src/pamhelper/authClient.py
4ae39ae
+++ b/src/pamhelper/authClient.py
4ae39ae
@@ -35,7 +35,7 @@ def initialize(self):
4ae39ae
             return True
4ae39ae
 
4ae39ae
         try:
4ae39ae
-            path = os.path.join(config.pkgdatadir, "pamhelper", "cinnamon-screensaver-pam-helper")
4ae39ae
+            path = os.path.join(config.libexecdir, "cinnamon-screensaver-pam-helper")
4ae39ae
 
4ae39ae
             if status.Debug:
4ae39ae
                 argv = (path, "--debug", None)
4ae39ae