<div dir="ltr"><div style>ups  too much true in the command line :) </div><div style><br></div><div>print("vlc raw string             "+defaultApplication("video/x-ogm+ogg") )</div><div>var test=defaultApplication("video/x-ogm+ogg").replace(/.*\//, "")</div>
<div>print("removing /usr/bin/ from it  :               "+test)</div><div>var test2 = test.split(" ")</div><div>print ("removing options             "+test2[0])</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/1/31 Nowardev-Team <span dir="ltr"><<a href="mailto:nowardev@gmail.com" target="_blank">nowardev@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">thanks , btw with vlc and i guess other non-kde software i managed to fix with this <div><br></div><div><div>print("vlc raw string             "+defaultApplication("video/x-ogm+ogg"), true)</div>

<div>var test=defaultApplication("video/x-ogm+ogg").replace(/.*\//, "")</div><div>print("removing /usr/bin/ from it  :               "+test)</div><div>var test2 = test.split(" ")</div>

<div>print ("removing options             "+test2[0])</div><div><br></div><div>===================================================</div><div>what i get for VLC :</div><div>===================================================</div>

<div><br></div><div>vlc raw string             /usr/bin/vlc %U</div><div>removing /usr/bin/ from it  :               vlc %U</div><div>removing options             vlc</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

2013/1/31 Aaron J. Seigo <span dir="ltr"><<a href="mailto:aseigo@kde.org" target="_blank">aseigo@kde.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<div>On Wednesday, January 30, 2013 19:25:05 Nowardev-Team wrote:<br>
> ok :)  i managed to fix that with<br>
><br>
> var test = defaultApplication("filemanager").split(" ")<br>
> print (test[0])<br>
<br>
</div>also fixed properly in master.<br>
<br>
note that you can also do: defaultApplication("filemanager", true) to get the<br>
.desktop file for it rather than the executable<br>
<span><font color="#888888"><br>
--<br>
Aaron J. Seigo</font></span><br></div></div><div class="im">_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br></div>