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

From: Tomi Ollila tomi.ollila at guru.guru-group.fi
Date: Tue Nov 21 17:37:45 EET 2006
Ralph Giles <giles at xiph.org> writes:

> On Tue, Nov 21, 2006 at 12:09:34AM +0200, Tomi Ollila wrote:
>
> You don't seem to be suffering from the bug I discovered doing this last 
> week. https://maemo.org/bugzilla/show_bug.cgi?id=859 but it might be 
> something similar.

Thanks for this tip. I have not tested it yet, but:

$ cat applications/hildon/revsh-tunnel-gui.desktop | tr ' ' +
[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

Let's hope it works!

>
>> 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.
>
> In 2.1, non-com.nokia dbus service names seem to work. There's also 
> something funny going on with the extras menu; there are things in my 
> scratchbox's extras menu that don't have entried in /etc/others-menu/

grsync is one of such program that does not have entry on /etc/others-menu...

>
> Other than that, I don't see what's wrong. It's my understanding that 
> task manager will kill your application if you don't osso_initialize
> and install a handler, but I agree that has to be independent of getting 
> the menu item to show up in the first place.

yes, it does. Last time I tried hard to get osso_initialize() to work, but
I finally had to accept the follwing (ugly!?!?) workaround:

#if DBUS_ESCAPE_HAX
    /* FIXME cheating D-BUS for now. Maybe fixed in (near) future */
    /* do *before* gtk_init() */
    if (fork()) { sleep(1); _exit(0); }
    close(0); open("/dev/null", O_RDWR); dup2(0, 1); dup2(0, 2); setsid();
#endif

>
>  -r

Marius Gedminas <marius at pov.lt> writes:

> 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

Hmm, I probably get it (first) working with this, but this may still
provide useful...

Dave Cridland <dave at cridland.net> writes:

> Look at
> http://trac.dave.cridland.net/cgi-bin/trac.cgi/browser/projects/infotrope/polymer-gtk

Sure, anyone using Trac deserves a look :D


Tomi

More information about the maemo-developers mailing list