matrix-gui_svn: Add autostart package
authorChase Maupin <chase.maupin@ti.com>
Thu, 27 May 2010 15:59:40 +0000 (10:59 -0500)
committerKoen Kooi <koen@openembedded.org>
Fri, 28 May 2010 07:21:14 +0000 (09:21 +0200)
* Added package for autostarting the matrix_gui application
  in X11 desktops.  Package is called matrix-gui-autostart.
* Added .desktop file for starting the matrix_gui application
  when the system is logged in.
* Autostart package depends on the base matrix-gui package.

Acked-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Chase Maupin <chase.maupin@ti.com>
Signed-off-by: Koen Kooi <k-kooi@ti.com>
recipes/ti/matrix-gui/matrix-gui.desktop [new file with mode: 0644]
recipes/ti/matrix-gui_svn.bb

diff --git a/recipes/ti/matrix-gui/matrix-gui.desktop b/recipes/ti/matrix-gui/matrix-gui.desktop
new file mode 100644 (file)
index 0000000..52b5831
--- /dev/null
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=Matrix GUI
+Comment=Start the Matrix GUI application
+Exec=/usr/bin/matrix_gui /usr/share/matrix/html/menu_main.html
+Terminal=false
+Type=Application
+X-GNOME-Autostart-enabled=true
index 39c80de..e5fc01d 100644 (file)
@@ -6,11 +6,12 @@ PRIORITY = "optional"
 
 SRCREV = "58"
 PV = "1.0"
-PR = "r12+svnr${SRCPV}"
+PR = "r13+svnr${SRCPV}"
 
 SRC_URI = "svn://gforge.ti.com/svn/matrix_gui/;module=trunk;proto=https;user=anonymous;pswd='' \
     file://0001-Disable-cursor-override-for-X11.patch;patch=1 \
        file://init \
+    file://matrix-gui.desktop \
 "
 
 S = "${WORKDIR}/trunk"
@@ -45,6 +46,14 @@ do_install() {
        install -m 0644 ${S}/images/*.png ${D}/${datadir}/matrix/images/
        install -d ${D}${sysconfdir}/init.d/
        install -c -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/matrix-gui
+    install -d ${D}/${sysconfdir}/xdg/autostart
+    install -m 0755 ${WORKDIR}/matrix-gui.desktop ${D}/${sysconfdir}/xdg/autostart
 }
 
+FILES_${PN}-autostart = "${sysconfdir}/xdg/autostart/matrix-gui.desktop"
 FILES_${PN} += "${datadir}/matrix/*"
+
+#Make autostart package depend on matrix-gui package.  Doesn't make sense
+#to install the autostart package without the underlying matrix-gui package.
+RDEPENDS_${PN}-autostart = "${PN}"
+PACKAGES =+ "${PN}-autostart"