[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: plasma javascripting
From:       Nowardev-Team <nowardev () gmail ! com>
Date:       2013-01-31 13:08:48
Message-ID: CAL6cU-0UvbNpTMK27GvJcEaMLO+ZZ9QmtOqaA0WHv9GXhqEuWw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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
>>
>>
>

[Attachment #5 (text/html)]

<div dir="ltr"><div style>ups  too much true in the command line :) </div><div \
style><br></div><div>print(&quot;vlc raw string             \
&quot;+defaultApplication(&quot;video/x-ogm+ogg&quot;) )</div><div>var \
test=defaultApplication(&quot;video/x-ogm+ogg&quot;).replace(/.*\//, \
&quot;&quot;)</div> <div>print(&quot;removing /usr/bin/ from it  :               \
&quot;+test)</div><div>var test2 = test.split(&quot; &quot;)</div><div>print \
(&quot;removing options             &quot;+test2[0])</div></div><div \
class="gmail_extra"> <br><br><div class="gmail_quote">2013/1/31 Nowardev-Team <span \
dir="ltr">&lt;<a href="mailto:nowardev@gmail.com" \
target="_blank">nowardev@gmail.com</a>&gt;</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(&quot;vlc raw string             \
&quot;+defaultApplication(&quot;video/x-ogm+ogg&quot;), true)</div>

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

<div>print (&quot;removing options             \
&quot;+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">&lt;<a href="mailto:aseigo@kde.org" \
target="_blank">aseigo@kde.org</a>&gt;</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>
&gt; ok :)  i managed to fix that with<br>
&gt;<br>
&gt; var test = defaultApplication(&quot;filemanager&quot;).split(&quot; &quot;)<br>
&gt; print (test[0])<br>
<br>
</div>also fixed properly in master.<br>
<br>
note that you can also do: defaultApplication(&quot;filemanager&quot;, 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>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic