Re: plasma javascripting

2013-01-31 Thread Nowardev-Team
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

Re: plasma javascripting

2013-01-31 Thread Nowardev-Team
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 tes

Re: plasma javascripting

2013-01-31 Thread Aaron J. Seigo
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 fi

Re: plasma javascripting

2013-01-30 Thread Nowardev-Team
ok :) i managed to fix that with var test = defaultApplication("filemanager").split(" ") print (test[0]) 2013/1/29 Aaron J. Seigo > On Tuesday, January 29, 2013 16:24:31 Nowardev-Team wrote: > > and it worked fine but for dolphin you get this > > > > > > dolphin %i -caption "%c" %u > > this i

Re: plasma javascripting

2013-01-29 Thread Aaron J. Seigo
On Tuesday, January 29, 2013 16:24:31 Nowardev-Team wrote: > and it worked fine but for dolphin you get this > > > dolphin %i -caption "%c" %u this is the exec line from the .desktop file. i supose it could either: * simply return the .desktop file path (might break any users of it that don't

plasma javascripting

2013-01-29 Thread Nowardev-Team
i did this print (defaultApplication("video/quicktime")) print (defaultApplication("browser")) print (defaultApplication("filemanager")) print (defaultApplication("mailer")) print (defaultApplication("terminal")) print (defaultApplication("imClient")) and it worked fine but for dolphin you get