summaryrefslogtreecommitdiff
blob: c70a07f819a1e1bc1e60dd0646df2e362bc9f983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Àlex Fiestas <afiestas@kde.org>
Date: Mon, 28 Apr 2014 16:05:07 +0000
Subject: [startkde] Send env to kwalletd in case of pam-kwallet
X-Git-Tag: v4.96.0
X-Git-Url: http://quickgit.kde.org/?p=plasma-workspace.git&a=commitdiff&h=9581a52a5d734435d0cef759e20d1af2473dd15e
---
[startkde] Send env to kwalletd in case of pam-kwallet
---


--- a/startkde/startkde.cmake
+++ b/startkde/startkde.cmake
@@ -329,6 +329,11 @@
 
 XDG_CURRENT_DESKTOP=KDE
 export XDG_CURRENT_DESKTOP
+
+# At this point all the environment is ready, let's send it to kwalletd if running
+if test -n "PAM_KWALLET_LOGIN" ; then
+    env | socat STDIN UNIX-CONNECT:$PAM_KWALLET_LOGIN
+fi
 
 # We set LD_BIND_NOW to increase the efficiency of kdeinit.
 # kdeinit unsets this variable before loading applications.