Maemo .desktop file
- To make an application visible in maemo Task navigator, a desktop file is needed for the application.
- /usr/share/applications/hildon/[application].desktop
- Use af-sb-init.sh restart to restart GUI again in order for the new entry to be seen in the task navigator.
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Example libOSSO <=== the name of the application Exec=/usr/bin/example_libosso ;; <== binary to launch X-Osso-Service=org.maemo.example_libosso ;; <=== D-BUS service name Icon=qgn_list_gene_default_app MimeType=application/x-example;
D-Bus Service File
- Only one instance of a D-BUS service can be run simultaneously, guaranteeing that each application is running only once.
- /usr/share/dbus-1/services/[application].service
- use af-sb-init.sh restart before D-BUS daemon recognizes it.
[D-BUS Service]
Name=org.maemo.example_libosso # D-Bus service name (has to be unique)
Exec=/usr/bin/example_libosso # binary to launch
沒有留言:
張貼留言