plasma javascripting

Nowardev-Team nowardev at gmail.com
Wed Jan 30 18:25:05 UTC 2013


ok :)  i managed to fix that with

var test = defaultApplication("filemanager").split(" ")
print (test[0])


2013/1/29 Aaron J. Seigo <aseigo at kde.org>

> 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
> understand how to use that)
> * sanitize the command line by chopping everything after the first space
>
> i'm unsure which i like better. the latter is easier, but it could also be
> nice to get the .desktop file. that would require adding API, though; so
> couldn't hit 4.10.
>
> i suppose both could be done, too ... sanitize in 4.10.x and get-me-the-
> desktop-file in 4.11
>
> --
> 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/20130130/25041975/attachment.html>


More information about the Plasma-devel mailing list