desktopdir = $(HILDON_HOME_DESKTOP_DIR)
desktop_in_files = flashlight-applet.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+
+launcherdir = $(datadir)/applications/hildon
+launcher_in_files = flashlight-applet-launcher.desktop.in
+launcher_DATA = $(launcher_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
-DISTCLEANFILES = $(desktop_DATA)
+DISTCLEANFILES = $(desktop_DATA) $(launcher_DATA)
--- /dev/null
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Name=Flashlight
+Exec=dbus-send --print-reply --dest=org.maemo.flashlight_applet /org/maemo/flashlight_applet org.maemo.flashlight_applet.enable
+Icon=statusarea_flashlight_on
+Type=Application
+X-Text-Domain=flashlight-applet
+NoDisplay=true
+