Add a .desktop file for the control panel plugin
authorSteven Luo <steven+maemo@steven676.net>
Tue, 15 Dec 2009 14:21:07 +0000 (06:21 -0800)
committerSteven Luo <steven+maemo@steven676.net>
Tue, 15 Dec 2009 14:21:07 +0000 (06:21 -0800)
The .desktop file is needed for hildon-control-panel to pick up the
applet.  Modify the Makefile to install it, and also fix a silly
plugin installation bug in the process.

config-ui/Makefile
config-ui/browser-switchboard-cp.desktop [new file with mode: 0644]

index eed97ed..f26c158 100644 (file)
@@ -49,7 +49,8 @@ strip: $(PLUGIN)
 
 install: all
        mkdir -p $(DESTDIR)$(PREFIX)/share/hildon-control-panel
 
 install: all
        mkdir -p $(DESTDIR)$(PREFIX)/share/hildon-control-panel
-       install -c -m 0755 $(PLUGIN) $(DESTDIR)$(PREFIX)/share/hildon-control-panel
+       install -c -m 0755 $(PLUGIN) $(DESTDIR)$(PREFIX)/lib/hildon-control-panel
+       install -c -m 0644 $(APP).desktop $(DESTDIR)$(PREFIX)/share/applications/hildon-control-panel
 
 clean:
        rm -f $(APP) $(HILDON_APP) $(PLUGIN) *.o
 
 clean:
        rm -f $(APP) $(HILDON_APP) $(PLUGIN) *.o
diff --git a/config-ui/browser-switchboard-cp.desktop b/config-ui/browser-switchboard-cp.desktop
new file mode 100644 (file)
index 0000000..10dfc8a
--- /dev/null
@@ -0,0 +1,9 @@
+[Desktop Entry] 
+Encoding=UTF-8
+Version=1.0
+Name=Browser Switchboard
+Comment=Set the default browser
+Type=HildonControlPanelPlugin
+Icon=qgn_list_cp_dev_network
+X-control-panel-plugin=libbrowser-switchboard-cp.so
+Categories=personalisation