Re: How to create an icon on desktop on N900 and link my binary to that
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 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, > > > > > 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: > > > > > > [ville~/qtdone]|4> cat qtdone.desktop > > > [Desktop Entry] > > > Encoding=UTF-8 > > > Version=1.0 > > > Type=Application > > > Name=qtdone > > > Exec=/usr/bin/qtdone > > > Icon=qtdone > > > StartupWMClass=qtdone > > > X-Window-Icon=qtdone > > > X-HildonDesk-ShowInToolbar=true > > > X-Osso-Type=application/x-executable > > > Terminal=false > > > > > I have a similar desktop file in my application and it shows up in the > > menu. But I can't place a shortcut/link on the active screen. I would > > like to do it during installation. Also my icon does not show up > > properly. The code is available on http://confmgr.garage.maemo.org/. > > Would be great if someone can point me in the right direction. > > > > > -- > > > Ville M. Vainio @@ Forum Nokia > > > ___ > > > maemo-developers mailing list > > > maemo-developers@maemo.org > > > https://lists.maemo.org/mailman/listinfo/maemo-developers > > > > > > > > ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to create an icon on desktop on N900 and link my binary to that
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, 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: [ville~/qtdone]|4> cat qtdone.desktop [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=qtdone Exec=/usr/bin/qtdone Icon=qtdone StartupWMClass=qtdone X-Window-Icon=qtdone X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable Terminal=false I have a similar desktop file in my application and it shows up in the menu. But I can't place a shortcut/link on the active screen. I would like to do it during installation. Also my icon does not show up properly. The code is available on http://confmgr.garage.maemo.org/. Would be great if someone can point me in the right direction. -- Ville M. Vainio @@ Forum Nokia ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to create an icon on desktop on N900 and link my binary to that
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: > > [ville~/qtdone]|4> cat qtdone.desktop > [Desktop Entry] > Encoding=UTF-8 > Version=1.0 > Type=Application > Name=qtdone > Exec=/usr/bin/qtdone > Icon=qtdone > StartupWMClass=qtdone > X-Window-Icon=qtdone > X-HildonDesk-ShowInToolbar=true > X-Osso-Type=application/x-executable > Terminal=false > I have a similar desktop file in my application and it shows up in the menu. But I can't place a shortcut/link on the active screen. I would like to do it during installation. Also my icon does not show up properly. The code is available on http://confmgr.garage.maemo.org/. Would be great if someone can point me in the right direction. > -- > Ville M. Vainio @@ Forum Nokia > ___ > maemo-developers mailing list > maemo-developers@maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers > -- BR; Naresh visit me at: http://www.naresh.se/ ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to create an icon on desktop on N900 and link my binary to that
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 .desktop file that works properly: [ville~/qtdone]|4> cat qtdone.desktop [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=qtdone Exec=/usr/bin/qtdone Icon=qtdone StartupWMClass=qtdone X-Window-Icon=qtdone X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable Terminal=false -- Ville M. Vainio @@ Forum Nokia ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to create an icon on desktop on N900 and link my binary to that
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 14:57, praveen koduru a écrit : 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 list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
How to create an icon on desktop on N900 and link my binary to that
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 list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How can I get Display Resolution in N900 maemo5?
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 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
VS: How can I get Display Resolution in N900 maemo5?
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 ext praveen koduru [prawin1...@gmail.com] puolesta Lähetetty: 10. elokuuta 2010 9:08 Vastaanottaja: maemo-developers@maemo.org Aihe: How can I get Display Resolution in N900 maemo5? I know that Display Resolution is 800x480, But I need to see from software the display resolution. I used to check Display Resolution in fedora using xrandr -q. But maemo doesnt have xrandr. Does maemo has similiar command to print Display resolution? or Can I install xrandr on maemo N900? Praveen ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: n900 debugging techniques
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 >> general techniques to debug this sort of thing? dmesg has nothing, and >> I can't see anything promising in /var/log/* either. > > http://repository.maemo.org/pool/maemo5.0/non-free/l/location-test-gui/ > may be of use. Didn't help much - just told me it could see a handful of satellites, none of which were in use. And from what I've found from googling, the gps is pretty hard to do any debugging on since it's mostly closed - guess I'll just have to reflash :( Is this worth filing as a bug under kernel-power? martin ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How can I get Display Resolution in N900 maemo5?
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 On Tue, Aug 10, 2010 at 12:47 PM, koos vriezen wrote: > 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.org/doc/Xlib/chapt_03.html) > > Koos > ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How can I get Display Resolution in N900 maemo5?
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.org/doc/Xlib/chapt_03.html) Koos ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How can I get Display Resolution in N900 maemo5?
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 is 800x480, But I need to see from software >> the display resolution. I used to check Display Resolution in fedora using >> xrandr -q. But maemo doesnt have xrandr. >> >> Does maemo has similiar command to print Display resolution? >> or Can I install xrandr on maemo N900? >> > > While yes, you could install it. > > ssh -x u...@phone > ssh -X u...@yourdesk > xrandr -q > Screen 0: minimum 480 x 480, current 800 x 480, maximum 800 x 800 > LCD connected 800x480+0+0 (normal left inverted right x axis y axis) 0mm x > 0mm > 800x48057.2*+ > > xrandr is run on the desktop, with X forwarded to the X server on the > phone. > > You can also if you're feeling silly run any X app like this, from xlander > to firefox. > X performance blows if you don't turn off powersave though. > > ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers