[maemo-developers] [maemo-developers] Troubleshooting .desktop and .service files

From: Marius Gedminas marius at pov.lt
Date: Tue Nov 21 13:58:43 EET 2006
On Tue, Nov 21, 2006 at 12:09:34AM +0200, Tomi Ollila wrote:
> I'm trying to (once again) get my .desktop (and .service) files
> do the things they're supposed to do -- add icon to extras menu
> and when program is running, show it's icon on task navigator,
> but with no luck. When I run my program from xterm and accidentally
> hide it with home button the window is gone without any change to
> get it back to screen.
<snip>
> The only things I've not done are not using hildon widgets and properly
> registering with osso_initialize() but I can not see how these affects
> when programs are not run yet.
<snip>
> So, now I turn to you. I have following content in my .deb
<snip>
> $ tar zxvf data.tar.gz
> ./
> ./usr/
> ./usr/lib/
> ./usr/lib/revsh.bin
> ./usr/share/
> ./usr/share/dbus-1/
> ./usr/share/dbus-1/services/
> ./usr/share/dbus-1/services/revsh-tunnel-gui.service
> ./usr/share/applications/
> ./usr/share/applications/hildon/
> ./usr/share/applications/hildon/revsh-tunnel-gui.desktop
> ./usr/bin/
> ./usr/bin/revcp
> ./usr/bin/revsh
> ./usr/bin/revsh-tunnel-gui
> ./etc/
> ./etc/others-menu/
> ./etc/others-menu/1401_revsh-tunnel-gui.desktop
> $
> $ cat usr/share/applications/hildon/revsh-tunnel-gui.desktop
> [Desktop Entry] 
> Encoding=UTF-8 
> Version=1.0 
> Type=Application 
> Name=RevSH Tunnel
> Exec=/usr/bin/revsh-tunnel-gui
> Terminal=false
> X-Osso-Service=invalid.too.revsh_tunnel_gui
> X-Osso-Type=application/x-executable
> X-HildonDesk-ShowInToolbar=true
> Icon=qgn_list_btno_gen_computer

I wonder if you need to speciy StartupWMClass here.

    "the name of the application binary name. This field is optional and
    only needed if the binary name differs from the D-BUS service name.
    If the names are different and this field is not defined, the
    application is not shown in the task navigator's application
    switcher."

           -- http://maemo.org/platform/docs/tutorials/Maemo_tutorial.html#Maemo-desktopfile

> $
> $ cat usr/share/dbus-1/services/revsh-tunnel-gui.service
> [D-BUS Service]
> Name=invalid.too.revsh_tunnel_gui
> Exec=/usr/bin/revsh-tunnel-gui
> $
> $ ls -l etc/others-menu/1401_revsh-tunnel-gui.desktop | sed 's/.\{37\}//'
> etc/others-menu/1401_revsh-tunnel-gui.desktop -> /usr/share/applications/hildon/revsh-tunnel-gui.desktop

Everything appears to be in order... but then I do not qualify as an
advanced maemo software developer.

> Is there anything you advanced maemo software developers notice is wrong
> here... and anything I more I can check out to troubleshoot my obstacles
> away ?

Marius Gedminas
-- 
Experience varies directly with equipment ruined.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20061121/8d1749d0/attachment.pgp 
More information about the maemo-developers mailing list