Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
gnome-session
Commits
4415fa83
Commit
4415fa83
authored
Feb 15, 2022
by
Ray Strode
Browse files
Revert "gnome-session: don't validate shell before using it"
This reverts commit
db1a97c2
parent
422282be
Changes
1
Hide whitespace changes
Inline
Side-by-side
gnome-session/gnome-session.in
View file @
4415fa83
...
...
@@ -2,7 +2,10 @@
if
[
"x
$XDG_SESSION_TYPE
"
=
"xwayland"
]
&&
[
"x
$XDG_SESSION_CLASS
"
!=
"xgreeter"
]
&&
[
-n
"
$SHELL
"
]
;
then
[
-n
"
$SHELL
"
]
&&
grep
-q
"
$SHELL
"
/etc/shells
&&
!
(
echo
"
$SHELL
"
|
grep
-q
"false"
)
&&
!
(
echo
"
$SHELL
"
|
grep
-q
"nologin"
)
;
then
if
[
"
$1
"
!=
'-l'
]
;
then
exec
bash
-c
"exec -l '
$SHELL
' -c '
$0
-l
$*
'"
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment