maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Adding application to menu under Diablo (https://talk.maemo.org/showthread.php?t=34573)

v_andal 2009-11-16 16:56

Adding application to menu under Diablo
 
Hi, I wanted to add my application to the list under Extras. So I've added the link to my .desktop file under /etc/others-menu/ as it is specified in docs, but nothing happened. I still don't see it. Currently I access it thru the Personal Menu folder. It also does not work in scratchbox.

Another question. In scratchbox I do not see japanese characters. Only square boxes with the UCS-2 code are displayed. I guess this is problem of the font, but how can I change the font used under the scratchbox? As far as I can see, the set of fonts there is very limited.

qwerty12 2009-11-16 18:18

Re: Adding application to menu under Diablo
 
Quote:

Originally Posted by v_andal (Post 378235)
Hi, I wanted to add my application to the list under Extras. So I've added the link to my .desktop file under /etc/others-menu/ as it is specified in docs, but nothing happened. I still don't see it. Currently I access it thru the Personal Menu folder. It also does not work in scratchbox.

Use /usr/share/applications/hildon/, instead. /etc/others-menu - as I understand it - is for older versions of Maemo.
pkg-config osso-af-settings --variable=desktopentrydir will also verify this fact.

v_andal 2009-11-18 08:14

Re: Adding application to menu under Diablo
 
Now I have another problem. When I try to launch my application through the entry in Extras menu, then the hildon crashes. When I run it from Personal Menu, then there are no problems. What possibly I'm doing wrong in the application, that starting through Extras becomes so sensitive? This must have something to do with dbus...

qwerty12 2009-11-18 10:13

Re: Adding application to menu under Diablo
 
Does your D-Bus service name contain a dash in it, by any chance?

v_andal 2009-11-18 11:56

Re: Adding application to menu under Diablo
 
Yep. It does.

qwerty12 2009-11-18 11:57

Re: Adding application to menu under Diablo
 
No idea why, no idea if there is a bug report for it, but a dash in its name will cause hildon-desktop to crash.

v_andal 2009-11-23 10:31

Re: Adding application to menu under Diablo
 
Replacing dash with underscore has fixed the problem. Now I just need to figure out support for locales. The scratchbox environment provides only 2 locales: POSIX and C. I'd like to add en_US.UTF-8. Simple

local-gen en_US.UTF-8

does not produce any results. Any hints in this situation?


All times are GMT. The time now is 03:13.

vBulletin® Version 3.8.8