[gaming] fix skel

This commit is contained in:
Philip Mueller 2023-09-12 13:34:31 +02:00
parent 3c80d0a331
commit ea9f684bfd
2 changed files with 0 additions and 11 deletions

View file

@ -1,7 +0,0 @@
[Desktop Entry]
Name=Return to Gaming Mode
Exec=qdbus org.kde.Shutdown /Shutdown org.kde.Shutdown.logout
Icon=steamdeck-gaming-return
Terminal=false
Type=Application
StartupNotify=false

View file

@ -73,11 +73,7 @@ class ConfigOem:
def run(self):
target_env_call(['groupadd', 'autologin'])
target_env_call(['mv', '/etc/skel', '/etc/skel_'])
target_env_call(['mv', '/etc/oemskel', '/etc/skel'])
target_env_call(['useradd', '-m', '-s', '/bin/bash', '-U', '-G', self.groups, 'gamer'])
target_env_call(['mv', '/etc/skel', '/etc/oemskel'])
target_env_call(['mv', '/etc/skel_', '/etc/skel'])
self.change_user_password('gamer', 'gamer')
path = os.path.join(self.root, "etc/sudoers.d/g_gamer")
with open(path, "w") as oem_file: