ups  too much true in the command line :) 

print("vlc raw string             "+defaultApplication("video/x-ogm+ogg") )
var test=defaultApplication("video/x-ogm+ogg").replace(/.*\//, "")
print("removing /usr/bin/ from it  :               "+test)
var test2 = test.split(" ")
print ("removing options             "+test2[0])


2013/1/31 Nowardev-Team <nowardev@gmail.com>
thanks , btw with vlc and i guess other non-kde software i managed to fix with this 

print("vlc raw string             "+defaultApplication("video/x-ogm+ogg"), true)
var test=defaultApplication("video/x-ogm+ogg").replace(/.*\//, "")
print("removing /usr/bin/ from it  :               "+test)
var test2 = test.split(" ")
print ("removing options             "+test2[0])

===================================================
what i get for VLC :
===================================================

vlc raw string             /usr/bin/vlc %U
removing /usr/bin/ from it  :               vlc %U
removing options             vlc


2013/1/31 Aaron J. Seigo <aseigo@kde.org>
On Wednesday, January 30, 2013 19:25:05 Nowardev-Team wrote:
> ok :)  i managed to fix that with
>
> var test = defaultApplication("filemanager").split(" ")
> print (test[0])

also fixed properly in master.

note that you can also do: defaultApplication("filemanager", true) to get the
.desktop file for it rather than the executable

--
Aaron J. Seigo

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel