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 <vivai...@gmail.com> wrote: > On Tue, Aug 10, 2010 at 4:02 PM, Fred Lefévère-Laoide > <f...@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 >
_______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers