Commit 68a3f5b5 authored by Florent Revest's avatar Florent Revest

mapplauncherd: Disable boot mode

parent c91b1d17
#!/bin/sh
### BEGIN INIT INFO
# Provides: psplash
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
### END INIT INFO
read CMDLINE < /proc/cmdline
for x in $CMDLINE; do
case $x in
psplash=false)
echo "Boot splashscreen disabled"
exit 0;
;;
esac
done
export TMPDIR=/mnt/.psplash
mount tmpfs -t tmpfs $TMPDIR -o,size=40k
rotation=0
if [ -e /etc/rotation ]; then
read rotation < /etc/rotation
fi
/usr/bin/psplash --angle $rotation --no-console-switch &
...@@ -7,6 +7,7 @@ file://0001-Don-t-draw-progress-and-message-bar.patch \ ...@@ -7,6 +7,7 @@ file://0001-Don-t-draw-progress-and-message-bar.patch \
file://psplash.service \ file://psplash.service \
file://psplash-img-280.png \ file://psplash-img-280.png \
file://psplash-img-320.png \ file://psplash-img-320.png \
file://psplash.sh \
" "
SPLASH_IMAGES = "file://psplash-img-320.png;outsuffix=default" SPLASH_IMAGES = "file://psplash-img-320.png;outsuffix=default"
...@@ -25,6 +26,8 @@ do_install_append () { ...@@ -25,6 +26,8 @@ do_install_append () {
cp ../psplash.service ${D}/lib/systemd/system/ cp ../psplash.service ${D}/lib/systemd/system/
ln -s ../psplash.service ${D}/lib/systemd/system/multi-user.target.wants/psplash.service ln -s ../psplash.service ${D}/lib/systemd/system/multi-user.target.wants/psplash.service
cp ../psplash.sh ${D}/etc/init.d/psplash.sh
} }
# Erase psplash's pkg_postinst which masks psplash from systemd # Erase psplash's pkg_postinst which masks psplash from systemd
......
[Unit]
Description=Signal booster-qt5 that boot is over
Requires=booster-qt5.service
After=booster-qt5.service post-user-session.target asteroid-launcher.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/killall -SIGUSR1 booster-qt5
[Unit]
Description=Application launch booster for Qt5
After=dbus.socket
Requires=dbus.socket
Wants=booster-qt5-signal.service
[Service]
Type=notify
ExecStart=/usr/libexec/mapplauncherd/booster-qt5 --systemd
Restart=always
RestartSec=1
[Install]
WantedBy=user-session.target
...@@ -4,7 +4,7 @@ LICENSE = "LGPLv2.1" ...@@ -4,7 +4,7 @@ LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://qtbooster/qtbooster.cpp;beginline=1;endline=18;md5=fb70bd5bb640878875111d8161fa303c" LIC_FILES_CHKSUM = "file://qtbooster/qtbooster.cpp;beginline=1;endline=18;md5=fb70bd5bb640878875111d8161fa303c"
SRC_URI = "git://git.merproject.org/mer-core/mapplauncherd-qt.git;protocol=https \ SRC_URI = "git://git.merproject.org/mer-core/mapplauncherd-qt.git;protocol=https \
file://booster-qt5-signal.service" file://booster-qt5.service"
SRCREV = "8c2d34f64c7e21bcf394e937e71361da51e6077c" SRCREV = "8c2d34f64c7e21bcf394e937e71361da51e6077c"
PR = "r1" PR = "r1"
PV = "+git${SRCPV}" PV = "+git${SRCPV}"
...@@ -16,13 +16,13 @@ RDEPENDS_${PN} += "polkit mapplauncherd" ...@@ -16,13 +16,13 @@ RDEPENDS_${PN} += "polkit mapplauncherd"
do_configure_prepend() { do_configure_prepend() {
sed -i "s@INCLUDEPATH += /usr/include/applauncherd@INCLUDEPATH += ${STAGING_INCDIR}/applauncherd@" ${S}/qtbooster/qtbooster.pro sed -i "s@INCLUDEPATH += /usr/include/applauncherd@INCLUDEPATH += ${STAGING_INCDIR}/applauncherd@" ${S}/qtbooster/qtbooster.pro
cp ${WORKDIR}/booster-qt5-signal.service ${S}/data/booster-qt5-signal.service cp ${WORKDIR}/booster-qt5.service ${S}/data/booster-qt5.service
} }
do_install_append() { do_install_append() {
rm ${D}/usr/lib/systemd/user/booster-qt5-signal.service
install -d ${D}/usr/lib/systemd/user/default.target.wants/ install -d ${D}/usr/lib/systemd/user/default.target.wants/
ln -s ../booster-qt5.service ${D}/usr/lib/systemd/user/default.target.wants/booster-qt5.service ln -s ../booster-qt5.service ${D}/usr/lib/systemd/user/default.target.wants/booster-qt5.service
ln -s ../booster-qt5-signal.service ${D}/usr/lib/systemd/user/default.target.wants/booster-qt5-signal.service
} }
FILES_${PN} += "/usr/lib/systemd/user /usr/libexec/mapplauncherd" FILES_${PN} += "/usr/lib/systemd/user /usr/libexec/mapplauncherd"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment