[maemo-developers] How to create an icon on desktop on N900 and link my binary to that
From: praveen koduru prawin1111 at gmail.comDate: Mon Aug 16 09:58:44 EEST 2010
- Previous message: How to create an icon on desktop on N900 and link my binary to that
- Next message: Any early QtWRT adopters flying with us?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I am trying to do a test by creating an icon, the requirement is very simple. I need to open a browser and launch "google.com" through DBUS-SEND command. The dbus-send command in kept in a shell script(run.sh) and run.sh is hooked to test1.desktop file. I created test1.desktop file and test1 appears in the menu. but when I clicked it is not launching. it tries for a while and disappears. *test1.desktop:* [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=TEST1 Exec=/usr/bin/run.sh Icon=qtdone StartupWMClass=qtdone X-Window-Icon=qtdone X-HildonDesk-ShowInToolbar=true Terminal=false */usr/bin/run.sh:* dbus-send --system --type=method_call --dest="com.nokia.osso_browser" --print-reply /com/nokia/osso_browser/request com.nokia.osso_browser.load_url string:"google.com" *ls -l /usr/bin/run.sh:* -rwxr-xr-x if I execute simply run.sh, works fine. But the same thing I am trying to do it through Icon. Am I missing something. I am new to N900. Help would be gretaly appreciated. -Raja On Tue, Aug 10, 2010 at 7:00 PM, Ville M. Vainio <vivainio at gmail.com> wrote: > On Tue, Aug 10, 2010 at 4:02 PM, Fred Lefévère-Laoide > <fred at lefevere-laoide.net> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100816/f266f037/attachment.htm>
- Previous message: How to create an icon on desktop on N900 and link my binary to that
- Next message: Any early QtWRT adopters flying with us?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]