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

From: Tomi Ollila tomi.ollila at guru.guru-group.fi
Date: Tue Nov 21 00:09:34 EET 2006
Hi

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.

I remember fighting with this when developed using maemo 1.0 software,
now the problem reappeared, and seems to be stickier than that last time.

I've been looking the .desktop and .service files
from several other packages installed on my N770 and tried to make 
mine as close than those, but no help.

I've also been browsing many development docs to figure out how this
should be done and tried to act accordingly.

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.

I can only test on my N770, as running the programs on my scratchbox
environment doesn't seem to work quite well. After a long fight I managed
to get compilation environment work OK on my FC5 -- the programs compiled
work OK on N770, it is just a bit tedious to repeatedly uninstall and
install the same software again and again (and reboot every now and then,
that seemed to help with OS 2005) after every tiny change...

So, now I turn to you. I have following content in my .deb

$ ar -x revsh_1.92_armel.deb
$
$ tar zxf control.tar.gz
$
$ cat control
Package: revsh
Version: 1.92
Section: user/net
Priority: optional
Architecture: armel
Provides: reverse-shell
Installed-Size: 180
Maintainer: Tomi Ollila <too at iki.fi>
Description: Reverse Shell
 A tool to create Secure/Remote shell tunnel and then start
 commands/shells on tunnel destination machine to be executed
 on tunnel originating machine.
$
$ 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
$
$ 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


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 ?

Tomi

More information about the maemo-developers mailing list