ivi-homescreen_aglflutter: Use the agl-session for starting up
[AGL/meta-agl-devel.git] / meta-agl-flutter / recipes-graphics / toyota / ivi-homescreen_aglflutter.inc
1 # Potentially pin SRCREV here.  Use upstream's AUTOINC default for
2 # development for now.
3 #SRCREV = ""
4
5 # For now disable gstreamer to avoid needing to enable "commercial"
6 # licenses for the stated ffmpeg dependency.
7 PACKAGECONFIG:remove = "gstreamer"
8
9 # AGL specifics
10 IVI_HOMESCREEN_APP_OVERRIDE = "--a=/usr/share/gallery"
11
12 SERVICE_UNIT        = "Requires=agl-compositor.service\nAfter=agl-compositor.service"
13 SERVICE_INSTALL     = "WantedBy=agl-session.target"
14 # we have a regular/agl-driver user, so avoid setting one
15 SERVICE_ENVIRONMENT = ""
16 SERVICE_USER_GROUP  = ""
17 SERVICE_RESTART     = "Restart=on-failure"
18
19 # we need to install as user session, not root.
20 do_install:append() {
21     install -d ${D}${systemd_user_unitdir}/agl-session.target.wants
22     install -m0644 ${WORKDIR}/homescreen.service ${D}${systemd_user_unitdir}/homescreen.service
23     ln -s ../homescreen.service ${D}${systemd_user_unitdir}/agl-session.target.wants/homescreen.service
24 }
25
26 FILES:${PN} += " ${systemd_user_unitdir}"