From 67493f800310208e5fec9e045fa0ae33e1122f3d Mon Sep 17 00:00:00 2001 From: Antoine Fontaine Date: Tue, 2 Jun 2020 16:43:10 +0200 Subject: [PATCH] main/postmarketos-ui-weston: actually start dbus (!1280) dbus-launch doesn't get installed automatically. On the other hand, dbus-run-session does. This version ensures that dbus is also launched for the graphical demos --- main/postmarketos-ui-weston/APKBUILD | 4 ++-- .../postmarketos-ui-weston.post-install | 2 +- main/postmarketos-ui-weston/start_weston.sh | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/main/postmarketos-ui-weston/APKBUILD b/main/postmarketos-ui-weston/APKBUILD index 2c5fbee5f..56ea22879 100644 --- a/main/postmarketos-ui-weston/APKBUILD +++ b/main/postmarketos-ui-weston/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Bart Ribbers pkgname=postmarketos-ui-weston pkgver=4 -pkgrel=16 +pkgrel=17 pkgdesc="(Wayland) Reference compositor (demo, not a phone interface)" url="https://postmarketos.org" arch="noarch" @@ -21,6 +21,6 @@ package() { install -Dm644 "$srcdir"/weston.ini.default \ "$pkgdir"/etc/xdg/weston/weston.ini.default } -sha512sums="02cb16254fa6bff405bd19448daeb1b4c2ac1fa696b6f7d67ea89795e4480ed1a9b5487dc00fc671d31d175fc8b8e509071b53dba879519a69d54648a076a549 start_weston.sh +sha512sums="33fbf6a3b5558a6d7c3a5993e890e4cee10e868ebc70e8f602d5e07513a77a0bebf7fd343c90a2a72c4f4b30777d3cd7b48c66efb4112032f4421d2806ef3b9b start_weston.sh b712c9d4c846437656781656ec15e9b7e238a9244e0b77bf84b67f6661d44f68718330706f69ccb8b4d7f6182b8f17f273018ca461c0c40e49b9185f6eec168d weston.ini.default 6800b81055c854ef69c0084341e31841d4b06d1d894542f1e125d0d70b6606f11218bda0d29dab9a48594b4c2f815a540f91bfba6c2c22c3378040c41fe4bbb1 66-lightdm-autologin.conf" diff --git a/main/postmarketos-ui-weston/postmarketos-ui-weston.post-install b/main/postmarketos-ui-weston/postmarketos-ui-weston.post-install index 69b327ad7..157bc60bd 100644 --- a/main/postmarketos-ui-weston/postmarketos-ui-weston.post-install +++ b/main/postmarketos-ui-weston/postmarketos-ui-weston.post-install @@ -2,6 +2,6 @@ sed -i "s/username/$(getent passwd 10000 | cut -d: -f1)/g" /usr/share/lightdm/lightdm.conf.d/66-autologin.conf -sed -i "s/^Exec=weston$/Exec=start_weston.sh/g" /usr/share/wayland-sessions/weston.desktop +sed -i "s/^Exec=weston$/Exec=dbus-run-session start_weston.sh/g" /usr/share/wayland-sessions/weston.desktop rc-update add lightdm default diff --git a/main/postmarketos-ui-weston/start_weston.sh b/main/postmarketos-ui-weston/start_weston.sh index e245cca7b..7cc382319 100644 --- a/main/postmarketos-ui-weston/start_weston.sh +++ b/main/postmarketos-ui-weston/start_weston.sh @@ -18,9 +18,6 @@ cfg="/etc/xdg/weston/weston.ini" [ -e "$cfg" ] || cfg="$cfg.default" WESTON_OPTS="--config=$cfg" -# Start dbus and export its environment variables -eval "$(dbus-launch --sh-syntax --exit-with-session)" - # #633: Weston doesn't support autostarting applications (yet), so # we try to run postmarketos-demos for 10 seconds, until it succeeds. ( @@ -31,4 +28,4 @@ eval "$(dbus-launch --sh-syntax --exit-with-session)" ) & -weston "${WESTON_OPTS}" 2>&1 | logger -t "$(whoami):weston" +exec weston "${WESTON_OPTS}" 2>&1 | logger -t "$(whoami):weston"