Skip to content

Commit

Permalink
Add option to use slick-greeter with lightdm (#1970)
Browse files Browse the repository at this point in the history
  • Loading branch information
serebit authored Sep 15, 2023
1 parent 418351d commit 06d46ac
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion archinstall/default_profiles/desktops/budgie.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ def packages(self) -> List[str]:

@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Lightdm
return GreeterType.LightdmSlick
3 changes: 2 additions & 1 deletion archinstall/default_profiles/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ class ProfileType(Enum):


class GreeterType(Enum):
Lightdm = 'lightdm'
Lightdm = 'lightdm-gtk-greeter'
LightdmSlick = 'lightdm-slick-greeter'
Sddm = 'sddm'
Gdm = 'gdm'
Ly = 'ly'
Expand Down
14 changes: 14 additions & 0 deletions archinstall/lib/profile/profiles_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ def install_greeter(self, install_session: 'Installer', greeter: GreeterType):
service = None

match greeter:
case GreeterType.LightdmSlick:
packages = ['lightdm', 'lightdm-slick-greeter']
service = ['lightdm']
case GreeterType.Lightdm:
packages = ['lightdm', 'lightdm-gtk-greeter']
service = ['lightdm']
Expand All @@ -191,6 +194,17 @@ def install_greeter(self, install_session: 'Installer', greeter: GreeterType):
if service:
install_session.enable_service(service)

# slick-greeter requires a config change
if greeter == GreeterType.LightdmSlick:
path = install_session.target.joinpath('etc/lightdm/lightdm.conf')
with open(path, 'r') as file:
filedata = file.read()

filedata = filedata.replace('#greeter-session=example-gtk-gnome', 'greeter-session=lightdm-slick-greeter')

with open(path, 'w') as file:
file.write(filedata)

def install_gfx_driver(self, install_session: 'Installer', driver: Optional[GfxDriver]):
try:

Expand Down

0 comments on commit 06d46ac

Please sign in to comment.