Skip to content

slick-greeter: a 'user interface' for lightdm #876

Merged
merged 2 commits into from
Sep 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions slick-greeter.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#!/usr/bin/env beesh

# BEE_VERSION slick-greeter-1.2.2-0

SRCURL[0]="https://github.com/linuxmint/slick-greeter/archive/${PKGVERSION}.tar.gz slick-greeter-${PKGVERSION}.tar.gz"

# PATCHURL+=()

# EXCLUDE+=()

build_in_sourcedir # or the 'badges' won't be installed

# mee_extract() {
# bee_extract "${@}"
# }

mee_patch() {
# bee_patch "${@}"
# our session descriptors are way large ...
sed -i -e '/BOX_WIDTH/ s/BOX_WIDTH = 8;/BOX_WIDTH = 11;/' ${S}/src/greeter-list.vala
# we also think differently if it comes to the name of the default session :)
sed -i -e '/sessions.append ("cinnamon");/ i \ sessions.append ("00-default");' ${S}/src/slick-greeter.vala
}

# mee_configure() {
# bee_configure
# }

# mee_build() {
# bee_build
# }

# mee_install() {
# bee_install
# }
## by default this may be 'make install DESTDIR="${D}"'

mee_install_post() {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing spaces.

###########################
# write our default config

local slickgreeterconf=/etc/lightdm/slick-greeter.conf
mkdir -vp ${D}/etc/lightdm

cat <<-CONF > ${D}/${slickgreeterconf}
# config options are listed here:
#
# https://github.com/linuxmint/slick-greeter/blob/master/README.md
#
draw-user-backgrounds=false
play-ready-sound=false
# accessibility doesn't really help, and would require 'https://launchpad.net/onboard'
show-a11y=false
# since german is hammered into /etc/local/X11_xorg.conf, we can skip this
# (also 'de nodeadkeys' looks silly).
show-keyboard=false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, us is our default, since we do not use /etc/X11/xorg.conf anymore. /etc/local/X11_xorg.conf is the local configuration of each system. So the user chose the keyboard layout during install time.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the description was a bit missleading, show-keyboard=false disables the display of a non-functioning keyboard layout chooser, when on, you either get a nice keyboard-icon plus an 'us', or when overriden (hammered...) with 'de nodeadkeys'.
In ascii-art:

[::_::] us   OR   [::_::] de   nodeadkeys

Maybe we should start trusting X to do the layout job on its own?

# well, no nifty background right now
# background=/tmp/test_bg.png
CONF

chmod 644 ${D}/${slickgreeterconf}


####################################################
# make the mariux session names known to the badges

local sessionfile
local badgedir=${D}/usr/share/slick-greeter/badges

for sessionfile in /usr/share/xsessions/*.desktop ; do

local dsb=$(basename ${sessionfile} .desktop)

test -e ${badgedir}/${dsb}.png && continue
test -e ${badgedir}/${dsb}.svg && continue

case ${dsb} in
xfce*)
ln -v -s xfce.svg ${badgedir}/${dsb}.svg
;;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry for xfce4_hidpi. Now I see it.

*)
ln -v -s usr.png ${badgedir}/${dsb}.png
;;
esac

done

}