plasma javascripting
Nowardev-Team
nowardev at gmail.com
Thu Jan 31 12:27:08 UTC 2013
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 at 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 at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20130131/dbab50d9/attachment.html>
More information about the Plasma-devel
mailing list