Commit fd556ab2 authored by David Edmundson's avatar David Edmundson

Don't hardcode default kwallet path

Summary:
This allows a user to install to a different prefix and have kwallet_pam
work out the box.

Test Plan: My kwallet_pam now works

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: apol, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D20218
parent 905b00d3
......@@ -34,6 +34,13 @@ set(pam_kwallet_SRCS
pam_kwallet.c
)
set(KF5_MIN_VERSION "5.57.0")
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Wallet
)
add_definitions(-DKWALLETD_BIN_PATH="${KWALLETD_BIN_PATH}")
if (APPLE)
LIST(APPEND pam_kwallet_SRCS
pam_darwin.c
......
......@@ -105,7 +105,7 @@ static void parseArguments(int argc, const char **argv)
kdehome = ".local/share";
}
if (kwalletd == NULL) {
kwalletd = "/usr/bin/kwalletd5";
kwalletd = KWALLETD_BIN_PATH;
}
if (kwalletPamDataKey == NULL) {
kwalletPamDataKey = "kwallet5_key";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment