Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anton Palgunov
mkimage-profiles
Commits
5b7c1893
Commit
5b7c1893
authored
May 27, 2019
by
Andrey Cherepanov
Committed by
Michael Shigorin
Jun 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11-autologin: detect default lightdm session
parent
7755845d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
40-x11-autologin
....in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin
+2
-0
No files found.
features.in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin
View file @
5b7c1893
...
...
@@ -55,9 +55,11 @@ fi
LIGHTDM_CONF
=
/etc/lightdm/lightdm.conf
if
[
-f
"
$LIGHTDM_CONF
"
]
;
then
backup
"
$LIGHTDM_CONF
"
default_session
=
"
$(
ls
-1
/usr/share/xsessions/
*
.desktop |
sed
-n
's/^.*\/\([^/]\+\)\.desktop$/\1/;1p'
)
"
sed
-i
\
-e
"s/^#
\(
autologin-user=
\)
.*
$/
\1
$USER
/"
\
-e
"s/^#
\(
autologin-user-timeout=0
\)
/
\1
/"
\
-e
"s/^#(autologin-session=).*
$/
\1
$default_session
/"
\
"
$LIGHTDM_CONF
"
backup
"/etc/group"
add_nopasswdlogin_group lightdm
||
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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