Package: sddm / 0.18.0-1

04_set_default_path.diff Patch series | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From: Maximiliano Curia <maxy@debian.org>
Date: Fri, 11 Nov 2016 09:45:34 +0100
Subject: Change the default PATH

The configured default PATH is used in the parts that run as root, the
greeter and for the user  sessions, so its better to have an spartan default.

At the same time, for the zsh users this spartan version gets expanded thanks
to the default global zshenv, while exporting a different value in the
Xsession script would be overriding the users configurations in their local
zshenv.
Forwarded: not-needed
Last-Update: 2015-09-14
---
 data/man/sddm.conf.rst.in  | 2 +-
 src/common/Configuration.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- a/data/man/sddm.conf.rst.in
+++ b/data/man/sddm.conf.rst.in
@@ -173,7 +173,7 @@ OPTIONS
 `DefaultPath=`
 	Default path to set after successfully logging in.
 	This is also where SDDM looks for programs.
-	Default value is "/usr/local/bin:/usr/bin:/bin".
+	Default value is "/bin:/usr/bin".
 
 `MinimumUid=`
 	Minimum user id of the users to be listed in the
--- a/src/common/Configuration.h
+++ b/src/common/Configuration.h
@@ -81,7 +81,7 @@ namespace SDDM {
         );
 
         Section(Users,
-            Entry(DefaultPath,         QString,     _S("/usr/local/bin:/usr/bin:/bin"),         _S("Default $PATH for logged in users"));
+            Entry(DefaultPath,         QString,     _S("/bin:/usr/bin"),         _S("Default $PATH for logged in users"));
             Entry(MinimumUid,          int,         UID_MIN,                                    _S("Minimum user id for displayed users"));
             Entry(MaximumUid,          int,         UID_MAX,                                    _S("Maximum user id for displayed users"));
             Entry(HideUsers,           QStringList, QStringList(),                              _S("Comma-separated list of users that should not be listed"));