plasma javascripting

Nowardev-Team nowardev at gmail.com
Thu Jan 31 13:08:48 UTC 2013


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 at 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 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/bf01e3e9/attachment-0001.html>


More information about the Plasma-devel mailing list