-
Notifications
You must be signed in to change notification settings - Fork 0
slick-greeter: a 'user interface' for lightdm #876
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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() { | ||
|
||
########################### | ||
# 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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, us is our default, since we do not use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe the description was a bit missleading,
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 | ||
;; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing spaces.