Skip to content

lighdm: Rebuild to read bash init scripts #1205

Merged
merged 1 commit into from
Aug 21, 2019
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
11 changes: 9 additions & 2 deletions lightdm.be0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env beesh

# BEE_VERSION lightdm-1.28.0-0
# BEE_VERSION lightdm-1.28.0-1

SRCURL[0]="https://github.com/CanonicalLtd/lightdm/releases/download/${PKGVERSION}/lightdm-${PKGVERSION}.tar.xz"

Expand Down Expand Up @@ -46,7 +46,14 @@ mee_configure() {

mee_install_post() {

sed '/bin\/sh/ a \\n. /etc/profile' ${S}/tests/src/lightdm-session > ${D}/usr/bin/lightdm-session
cat > ${D}/usr/bin/lightdm-session <<- 'EOF'
#! /bin/bash --login

# First argument is full command, ´for backwards compatibility'.

exec $1
EOF

chmod 755 ${D}/usr/bin/lightdm-session
rm -rf ${D}/etc/init
install -v -dm755 -o gdm -g gdm ${D}/var/lib/lightdm
Expand Down