diff options
author | Samuel Stirtzel <s.stirtzel@googlemail.com> | 2013-04-04 08:18:47 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-09 21:34:15 +0200 |
commit | caeba74096bf72d9b0f41ddaa1d92cfb8ecfc1bd (patch) | |
tree | 7ca2e7f4e0803d3faa3ff2b9caf39df5d49cb930 /meta-oe | |
parent | c35842efb2bd9b6df13f58afea9f1a7c04d8d769 (diff) | |
download | meta-openembedded-caeba74096bf72d9b0f41ddaa1d92cfb8ecfc1bd.tar.gz |
maliit-framework: enable autostart
maliit-server will start via xdg autostart
Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-support/maliit/maliit-framework/maliit-server.desktop | 6 | ||||
-rw-r--r-- | meta-oe/recipes-support/maliit/maliit-framework_git.bb | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/maliit/maliit-framework/maliit-server.desktop b/meta-oe/recipes-support/maliit/maliit-framework/maliit-server.desktop new file mode 100644 index 0000000000..24bdf9b525 --- /dev/null +++ b/meta-oe/recipes-support/maliit/maliit-framework/maliit-server.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Maliit server +Exec=/usr/bin/maliit-server +Icon= +Type=Application +Categories=Utility; diff --git a/meta-oe/recipes-support/maliit/maliit-framework_git.bb b/meta-oe/recipes-support/maliit/maliit-framework_git.bb index e61cca028c..2c4b0f8e8b 100644 --- a/meta-oe/recipes-support/maliit/maliit-framework_git.bb +++ b/meta-oe/recipes-support/maliit/maliit-framework_git.bb @@ -11,6 +11,7 @@ SRC_URI = "git://gitorious.org/maliit/maliit-framework.git;branch=master \ file://0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch \ file://0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch \ file://0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch \ + file://maliit-server.desktop \ " SRCREV = "750842dec74a9b17dca91ef779c4fc5a43c4d9dc" @@ -28,6 +29,7 @@ RRECOMMENDS_${PN} = "maliit-plugins" FILES_${PN} += "\ ${libdir}/maliit/plugins-*/factories/libmaliit-plugins-quick-factory-*.so \ ${libdir}/qt4/plugins/inputmethods/*.so \ + ${datadir}/applications/maliit-server.desktop \ " FILES_${PN}-dbg += "\ @@ -64,6 +66,9 @@ do_install_append() { #Fix absolute paths sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-framework.prf sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-plugins.prf + + install -d ${D}${datadir}/applications + install -m 644 ${WORKDIR}/maliit-server.desktop ${D}${datadir}/applications } pkg_postinst_${PN} () { @@ -73,6 +78,7 @@ if [ "x$D" != "x" ]; then exit 1 fi echo "export QT_IM_MODULE=Maliit" >> /etc/xprofile +ln -s /usr/share/applications/maliit-server.desktop /etc/xdg/autostart/maliit-server.desktop } pkg_postrm_${PN} () { @@ -84,7 +90,7 @@ fi if [ -e "/etc/xprofile" ]; then sed -i -e "g|export QT_IM_MODULE=Maliit|d" /etc/xprofile fi - +rm -f /etc/xdg/autostart/maliit-server.desktop } S = "${WORKDIR}/git" |