Re: How to create an icon on desktop on N900 and link my binary to that

2010-08-10 Thread Ville M. Vainio
Nah, single instance works without x-osso-service as well. I don't know whether that line has any sensible purpose, actually - dbus activation will be done with separate dbus service file anyway. -- Sent from my Nokia N900 - Original message - > > I thought the DBus initialization was u

Re: How to create an icon on desktop on N900 and link my binary to that

2010-08-10 Thread Fred Lefévère-Laoide
I thought the DBus initialization was used to allow only one intsnace of your program to be run, which is good on a handheld device ... I think you should let the user decide if he wants to put a shortcut on his desktop or not ? Fred Le 10/08/2010 17:29, Naresh Mehta a écrit : Hi All,

Re: How to create an icon on desktop on N900 and link my binary to that

2010-08-10 Thread Naresh Mehta
Hi All, > wrote: > >> You simply have to create a .desktop file associated with your program >> (don't forget to initialize dbus session with osso_init) > > osso_initialize is not needed if you don't specify X-Osso-Service in > the .desktop file. > > Here's a .desktop file that works properly: >

Re: How to create an icon on desktop on N900 and link my binary to that

2010-08-10 Thread Ville M. Vainio
On Tue, Aug 10, 2010 at 4:02 PM, Fred Lefévère-Laoide wrote: > You simply have to create a .desktop file associated with your program > (don't forget to initialize dbus session with osso_init) osso_initialize is not needed if you don't specify X-Osso-Service in the .desktop file. Here's a .desk

Re: How to create an icon on desktop on N900 and link my binary to that

2010-08-10 Thread Fred Lefévère-Laoide
You simply have to create a .desktop file associated with your program (don't forget to initialize dbus session with osso_init) users wil then be able to start your program via the menu and to add a shortcut on their desktop. you can check the developper documentation Fred Le 10/08/2010

How to create an icon on desktop on N900 and link my binary to that

2010-08-10 Thread praveen koduru
Hi, I have developed some program and am having it running on my N900 through command line. Now I want to create an icon on N900 home and on clicking that I need to launch that binary. Help would be appreciated. -Praveen ___ maemo-developers mailing l

Re: How can I get Display Resolution in N900 maemo5?

2010-08-10 Thread Ian Stirling
praveen koduru wrote: Hi Ian, I have tried "apt-get install xrandr" on my N900, Errror: couldnt find the package. Can you tell me which package you installed to make xrandr work for you on N900? I diddn't. open a terminal on the phone. ssh -X yourdesktop xrandr __

VS: How can I get Display Resolution in N900 maemo5?

2010-08-10 Thread Kimmo.Hamalainen
The window manager does it by checking the dimensions of the root window. You could do the same... See http://tronche.com/gui/x/xlib/ for Xlib reference. -Kimmo Lähettäjä: maemo-developers-boun...@maemo.org [maemo-developers-boun...@maemo.org] käyttäjän

Re: n900 debugging techniques

2010-08-10 Thread Martin DeMello
On Mon, Aug 9, 2010 at 12:03 AM, Ian Stirling wrote: > Martin DeMello wrote: >> >> So I installed kernel-power, which appears to have killed my gps (even >> when I reverted to the stock kernel), and I'd like to try finding out >> exactly what's wrong, rather than just reflashing. What are the >> g

Re: How can I get Display Resolution in N900 maemo5?

2010-08-10 Thread praveen koduru
Thanks Koos, This will help me. but I thought some program like xrandr will be nice to have on maemo. If so, we can quickly check the resolution. I dont know why they have removed the "xrandr" binary. For getting the display resolution itself you should write X11 code, doesnt look fare? -Praveen

Re: How can I get Display Resolution in N900 maemo5?

2010-08-10 Thread koos vriezen
2010/8/10 praveen koduru : > I know that Display Resolution is 800x480, But I need to see from software > the display resolution. I've googled it for you and in the Xlib Programming Manual, chapt_03 there are three methods described getting the screen dimensions. (found this one http://www.sbin.or

Re: How can I get Display Resolution in N900 maemo5?

2010-08-10 Thread praveen koduru
Hi Ian, I have tried "apt-get install xrandr" on my N900, Errror: couldnt find the package. Can you tell me which package you installed to make xrandr work for you on N900? -Praveen On Tue, Aug 10, 2010 at 11:55 AM, Ian Stirling wrote: > praveen koduru wrote: > >> I know that Display Resolution