Plasma Desktop Scripting Question

Jeremiah Summers jmiahman at gmail.com
Sun Aug 1 06:20:00 CEST 2010


On Sat, Jul 31, 2010 at 5:51 PM, Aaron J. Seigo <aseigo at kde.org> wrote:
> On July 31, 2010, Jeremiah Summers wrote:
>> Maybe I missed something, I have been reading through techbase and a
>> few fourms and mailinglist and I haven't found any mention of being
>> able to change the widgetStyle in plasma through ecma/Javascript. If
>> this is at all possible (with 4.5?) would anyone know of a example
>> they could point me too or maybe some more documentation that goes
>> over it.
>
> it isn't possible right now, no. not because it wouldn't be possible, but
>  because the scripting simply doesn't include that.
>
> unlike the things that the scripting covers, the widget style is a static
> entry easily found in a config file and changes are picked up automatically
> when made to the file, so it doesn't really benefit much from a runtime
>  control.
>
> i can understand why you would expect it to be there though, since it is
>  "just another setting" more or less.
>
> before deciding on whether ot add it or not, could you share your use case
>  for this feature?
>
> --
> Aaron J. Seigo
> humru othro a kohnu se
> GPG Fingerprint: 8B8B 2209 0C6F
>  7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
>
> KDE core developer sponsored by Qt Development Frameworks

I'm just being greedy, seeing if I can get most of the configuration
done by scripting. Right now I just have my default configuration
files in /etc/kde4/share/config/ I have been playing with scripting to
see if I can retire any of those and have the vast majority done by
one script file. I package for a Distribution (Unity Linux) that acts
as a "core" to other distributions, people can use our KDE 4 Packages
but just repackage our branding packages. I have found simplicity to
be key. The less configuration files to hurd the easier it is for
those wanting to create KDE 4 with their own look and feel for their
own purposes. I hope to present a script and a brief overview of it on
out wiki so others can take it and tweak it for their liking. However
maybe my philosophy here is flawed and I'm trying to use scripting for
more than what it's meant for. If so please let me know. I'm actually
quite happy with the way things are going I think the right choice was
made with ecma/Javascript so of course now I want too use it to do
everything I can ;)

Jeremiah


More information about the Plasma-devel mailing list