<div>I am trying to do a test by creating an icon, the requirement is very simple. I need to open a browser and launch "<a href="http://google.com">google.com</a>" 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.</div>
<div><br></div><div><b><u>test1.desktop:</u></b></div><div><div>[Desktop Entry]</div><div>Encoding=UTF-8</div><div>Version=1.0</div><div>Type=Application</div><div>Name=TEST1</div><div>Exec=/usr/bin/run.sh</div><div>Icon=qtdone</div>
<div>StartupWMClass=qtdone</div><div>X-Window-Icon=qtdone</div><div>X-HildonDesk-ShowInToolbar=true</div><div>Terminal=false</div></div><div><br></div><div><b><u>/usr/bin/run.sh:</u></b></div><div>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:"<a href="http://google.com">google.com</a>"</div>
<div><br></div><div><u><b>ls -l /usr/bin/run.sh:</b></u> -rwxr-xr-x</div><div><br></div><div>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.</div>
<div><br></div><div>-Raja</div><div><br><br></div><br><div class="gmail_quote">On Tue, Aug 10, 2010 at 7:00 PM, Ville M. Vainio <span dir="ltr"><<a href="mailto:vivainio@gmail.com">vivainio@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Tue, Aug 10, 2010 at 4:02 PM, Fred Lefévère-Laoide<br>
<<a href="mailto:fred@lefevere-laoide.net">fred@lefevere-laoide.net</a>> wrote:<br>
<br>
> You simply have to create a .desktop file associated with your program<br>
> (don't forget to initialize dbus session with osso_init)<br>
<br>
</div>osso_initialize is not needed if you don't specify X-Osso-Service in<br>
the .desktop file.<br>
<br>
Here's a .desktop file that works properly:<br>
<br>
[ville~/qtdone]|4> cat qtdone.desktop<br>
[Desktop Entry]<br>
Encoding=UTF-8<br>
Version=1.0<br>
Type=Application<br>
Name=qtdone<br>
Exec=/usr/bin/qtdone<br>
Icon=qtdone<br>
StartupWMClass=qtdone<br>
X-Window-Icon=qtdone<br>
X-HildonDesk-ShowInToolbar=true<br>
X-Osso-Type=application/x-executable<br>
Terminal=false<br>
<font color="#888888"><br>
<br>
--<br>
Ville M. Vainio @@ Forum Nokia<br>
</font></blockquote></div><br>