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
2
Issues
2
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
Ximper Linux
mkimage-profiles
Commits
5a2059a1
Commit
5a2059a1
authored
Mar 26, 2023
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deflogin: add variable DEFAULT_SESSION (for AccountsService)
parent
659bee91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
config.mk
features.in/deflogin/config.mk
+1
-0
60-default-session
...res.in/deflogin/rootfs/image-scripts.d/60-default-session
+25
-0
No files found.
features.in/deflogin/config.mk
View file @
5a2059a1
...
...
@@ -8,6 +8,7 @@ use/deflogin:
@$(call xport,GROUPS)
@$(call xport,SPEC_USER)
@$(call xport,LIVE_USER)
@$(call xport,DEFAULT_SESSION)
# some presets
# USERS variable chunk format is "login:passwd:admin:sudo"
...
...
features.in/deflogin/rootfs/image-scripts.d/60-default-session
0 → 100755
View file @
5a2059a1
#!/bin/sh
account_dir
=
/var/lib/AccountsService/users
[
-d
/var/lib/AccountsService/users
]
||
exit
0
[
-n
"
$GLOBAL_USERS
"
]
||
exit
0
[
-n
"
$GLOBAL_DEFAULT_SESSION
"
]
||
exit
0
if
[
-f
/usr/share/wayland-sessions/
"
$GLOBAL_DEFAULT_SESSION
"
.desktop
]
;
then
sesion_type
=
Session
elif
[
-f
/usr/share/xsessions/
"
$GLOBAL_DEFAULT_SESSION
"
.desktop
]
;
then
sesion_type
=
XSession
else
echo
"
$GLOBAL_DEFAULT_SESSION
.desktop is not found"
>
&2
exit
1
fi
for
user
in
$GLOBAL_USERS
;
do
user
=
"
${
user
%%
:
*
}
"
cat
>
"
$account_dir
"
/
"
$user
"
<<-
EOF
[User]
$sesion_type
=
$GLOBAL_DEFAULT_SESSION
EOF
cat
"
$account_dir
"
/
"
$user
"
done
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