Skip to content

Commit

Permalink
Update users.py
Browse files Browse the repository at this point in the history
sddm.cong yolu güncellendi
  • Loading branch information
erkanisik1 committed May 22, 2022
1 parent 8a7868f commit 87d1292
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions yali/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ def setAutoLogin(self, state=True):
dm = "kdm"
# set dm conf file
if os.path.exists("/usr/bin/sddm"):
dm_conf = "etc/sddm.conf"
#22052022 tarihinde değiştirildi
#dm_conf = "etc/sddm.conf"
dm_conf = "usr/lib/sddm/sddm.conf.d/sddm.conf"
dm = "sddm"
elif os.path.exists("/usr/sbin/lxdm"):
dm_conf = "etc/lxdm/lxdm.conf"
Expand Down Expand Up @@ -192,7 +194,8 @@ def set_key(section, key, value, rc):
elif dm == "sddm": # FIXME: plasma için ayarlandı
section = "[Autologin]"
auto_login_defaults['User'] = self.username if state else ""
auto_login_defaults['Session'] = "plasma.desktop" if state else ""
#22052022 tarihinde değiştirildi
#auto_login_defaults['Session'] = "plasma.desktop" if state else ""
elif dm == "lxdm":
section = "[base]"
auto_login_defaults['autologin'] = self.username if state else ""
Expand Down

0 comments on commit 87d1292

Please sign in to comment.