[oe-commits] David-John Willis : xinput-calibrator 0.5.0: Add desktop file so it has a link in menus.

git version control git at git.openembedded.org
Sun Jan 24 12:16:41 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: 304dff0127c8b17154f40bd83cae3552d15cf95b
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=304dff0127c8b17154f40bd83cae3552d15cf95b

Author: David-John Willis <John.Willis at Distant-earth.com>
Date:   Thu Jan 21 19:35:46 2010 +0000

xinput-calibrator 0.5.0: Add desktop file so it has a link in menus.

* As the app supports runtime config of touchscreens an icon for the app seems like a good idea.

---

 .../xinput-calibrator.desktop                      |   11 +++++++++++
 .../xinput-calibrator/xinput-calibrator_0.5.0.bb   |    8 ++++++--
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/recipes/xinput-calibrator/xinput-calibrator-0.5.0/xinput-calibrator.desktop b/recipes/xinput-calibrator/xinput-calibrator-0.5.0/xinput-calibrator.desktop
new file mode 100644
index 0000000..813d7c1
--- /dev/null
+++ b/recipes/xinput-calibrator/xinput-calibrator-0.5.0/xinput-calibrator.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Calibrate Xinput Touchscreen
+Name[de]=Xinput Touchscreen Kalibrieren
+Comment=Run the calibration tool for Xinput touchscreens
+Encoding=UTF-8
+Exec=/usr/bin/xinput_calibrator
+Terminal=false
+Type=Application
+Icon=calibrate
+StartupNotify=true
+Categories=System;Settings;
diff --git a/recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb b/recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb
index b01d4fd..8f31520 100644
--- a/recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb
+++ b/recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb
@@ -3,13 +3,17 @@ DEPENDS = "virtual/libx11 libxi"
 SRCREV  = "6af268f1b435f7bdd83335092ddc684054df2110"
 SRC_URI = "git://github.com/tias/xinput_calibrator.git;protocol=git \
            file://0001-switch-to-autotools-based-build-system.patch;patch=1 \
-           file://0002-gui_x11.cpp-Load-font-fixed-when-9x15-fails-in-GuiCa.patch;patch=1"
+           file://0002-gui_x11.cpp-Load-font-fixed-when-9x15-fails-in-GuiCa.patch;patch=1 \
+           file://xinput-calibrator.desktop \
+"
 
-PR = "r1"
+PR = "r2"
 inherit autotools
 S = "${WORKDIR}/git/"
 
 do_install() {
 	install -d ${D}${bindir}
 	install -m 0755 xinput_calibrator_x11 ${D}${bindir}/xinput_calibrator
+	install -d ${D}${datadir}/applications/	
+	install -m 0755 ${WORKDIR}/xinput-calibrator.desktop ${D}${datadir}/applications/xinput-calibrator.desktop	
 }





More information about the Openembedded-commits mailing list