Page MenuHomeFreeBSD

x11/lightdm-gtk-greeter and x11/slick-greeter: auto-set greeter-session
ClosedPublic

Authored by woodsb02 on Aug 22 2021, 3:03 AM.

Details

Summary

Add pkg-install and pkg-deinstall scripts to automatically configure
the greeter-session variable in lightdm.conf if it has not been manually
changed from the default value.

This reduces the steps for a fresh FreeBSD install to get to a graphical
environment to the following simple steps (excluding graphics drivers):
$ pkg install <greeter> <desktop-environment>
$ service lightdm enable
$ service ligthdm start

Test Plan

poudriere testport = ok
pkg install lightdm-gtk-greeter -> confirm lightdm.conf is edited: greeter-session=lightdm-gtk-greeter
pkg install slick-greeter -> confirm lightdm.conf not edited (already changed from default)
pkg remove slick-greeter -> confirm lightdm.conf not edited (already changed from default)
pkg remove lightdm-gtk-greeter -> confirm lightdm.conf is edited #greeter-session=example-gtk-gnome
pkg install slick-greeter -> confirm lightdm.conf is edited: greeter-session=slick-greeter
pkg install lightdm-gtk-greeter -> confirm lightdm.conf not edited (already changed from default)
pkg remove lightdm-gtk-greeter -> confirm lightdm.conf not edited (already changed from default)
pkg remove slick-greeter -> confirm lightdm.conf is edited #greeter-session=example-gtk-gnome

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Everything looks good.

This revision is now accepted and ready to land.Aug 25 2021, 2:59 PM

Thanks @ericbsd.
@madpilot are you able to provide your thoughts on behalf of desktop@?

Looks fine, and a good idea.

Sorry for the delay, I actually saved looking at this for later and then forgot.