Commit 50460e52 authored by Florent Revest's avatar Florent Revest

glacier-home: use the same systemd .service as asteroid-launcher

parent 97f21c32
EGL_PLATFORM=hwcomposer
XDG_RUNTIME_DIR=/tmp
GLACIER_NATIVEORIENTATION=0
LIPSTICK_OPTIONS="-plugin evdevtouch:/dev/input/event0 -platform hwcomposer"
[Unit]
Description=The lipstick UI
Requires=dbus.socket
[Service]
Type=notify
EnvironmentFile=-/usr/share/lipstick-glacier-home-qt5/nemovars.conf
EnvironmentFile=-/var/lib/environment/compositor/*.conf
ExecStartPre=/bin/sh -ec 'while [ ! -f /dev/.coldboot_done ]; do sleep 1; done'
ExecStart=/usr/bin/lipstick $LIPSTICK_OPTIONS --systemd
Restart=always
[Install]
WantedBy=multi-user.target
...@@ -3,7 +3,9 @@ HOMEPAGE = "https://github.com/nemomobile-ux/glacier-home.git" ...@@ -3,7 +3,9 @@ HOMEPAGE = "https://github.com/nemomobile-ux/glacier-home.git"
LICENSE = "MIT" LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://src/qml/AppLauncher.qml;beginline=1;endline=23;md5=b5fbcff61900379fb98b9f80f09d97a8" LIC_FILES_CHKSUM = "file://src/qml/AppLauncher.qml;beginline=1;endline=23;md5=b5fbcff61900379fb98b9f80f09d97a8"
SRC_URI = "git://github.com/nemomobile-ux/glacier-home.git;protocol=https" SRC_URI = "git://github.com/nemomobile-ux/glacier-home.git;protocol=https \
file://lipstick.service \
file://default.conf"
SRCREV = "${AUTOREV}" SRCREV = "${AUTOREV}"
PR = "r1" PR = "r1"
PV = "+git${SRCREV}" PV = "+git${SRCREV}"
...@@ -11,5 +13,15 @@ S = "${WORKDIR}/git" ...@@ -11,5 +13,15 @@ S = "${WORKDIR}/git"
inherit qmake5 inherit qmake5
DEPENDS += "lipstick" DEPENDS += "lipstick"
RDEPENDS_${PN} += "qtdeclarative-qmlplugins qtquickcontrols-qmlplugins qtquickcontrols-nemo qtwayland-plugins qtgraphicaleffects-qmlplugins nemo-qml-plugin-time nemo-qml-plugin-contextkit nemo-qml-plugin-configuration nemo-theme-glacier libconnman-qt libqofono xkeyboard-config liberation-fonts" RDEPENDS_${PN} += "qtdeclarative-qmlplugins qtquickcontrols-qmlplugins qtquickcontrols-nemo qtwayland-plugins qtgraphicaleffects-qmlplugins nemo-qml-plugin-time nemo-qml-plugin-contextkit nemo-qml-plugin-configuration nemo-theme-glacier libconnman-qt libqofono xkeyboard-config ttf-opensans"
FILES_${PN} += "/usr/share/lipstick-glacier-home-qt5" FILES_${PN} += "/usr/share/lipstick-glacier-home-qt5"
do_install_append() {
install -d ${D}/var/lib/environment/compositor/
cp ../default.conf ${D}/var/lib/environment/compositor/
# TODO: This should definitely be run as a simple user !!
install -d ${D}/etc/systemd/system/multi-user.target.wants/
cp ../lipstick.service ${D}/etc/systemd/system/
ln -s ../lipstick.service ${D}/etc/systemd/system/multi-user.target.wants/lipstick.service
}
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