D13112: Port Plasma Desktop Scripting to QJSEngine

2018-06-08 Thread Marco Martin
This revision was automatically updated to reflect the committed changes. Closed by commit R120:033ad5ca60b3: Port Plasma Desktop Scripting to QJSEngine (authored by mart). REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D13112?vs=35838&id=3

D13112: Port Plasma Desktop Scripting to QJSEngine

2018-06-08 Thread Marco Martin
mart updated this revision to Diff 35838. mart added a comment. - newError function to create JS errors REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D13112?vs=34864&id=35838 BRANCH mart/QJSEngineScripting REVISION DETAIL https://phabricator.

D13112: Port Plasma Desktop Scripting to QJSEngine

2018-06-08 Thread David Edmundson
davidedmundson added a comment. Oh sorry, I meant to find one. Yep that's the script I meant. Awesome. Ship it! REPOSITORY R120 Plasma Workspace BRANCH mart/QJSEngineScripting REVISION DETAIL https://phabricator.kde.org/D13112 To: mart, #plasma, davidedmundson Cc: davidedmundson,

D13112: Port Plasma Desktop Scripting to QJSEngine

2018-06-08 Thread Marco Martin
mart added a comment. https://github.com/pashazz/ksetwallpaper/blob/master/ksetwallpaper.py works perfectly REPOSITORY R120 Plasma Workspace BRANCH mart/QJSEngineScripting REVISION DETAIL https://phabricator.kde.org/D13112 To: mart, #plasma, davidedmundson Cc: davidedmundson, plasma-

D13112: Port Plasma Desktop Scripting to QJSEngine

2018-06-08 Thread Marco Martin
mart added a comment. In D13112#275382 , @davidedmundson wrote: > + > Thanks for tackling a very boring and difficult task. > > There are two things I'd like to see also tested: > > - the DBus wallpaper changing script that I know

D13112: Port Plasma Desktop Scripting to QJSEngine

2018-06-07 Thread David Edmundson
davidedmundson accepted this revision. davidedmundson added a comment. This revision is now accepted and ready to land. + Thanks for tackling a very boring and difficult task. There are two things I'd like to see also tested: - the DBus wallpaper changing script that I know a bu

D13112: Port Plasma Desktop Scripting to QJSEngine

2018-05-25 Thread Marco Martin
mart updated this revision to Diff 34864. mart added a comment. proper diff REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D13112?vs=34863&id=34864 BRANCH mart/QJSEngineScripting REVISION DETAIL https://phabricator.kde.org/D13112 AFFECTED FIL

Re: Review Request 128950: Allow Plasma desktop scripting to change panel's screen.

2016-09-21 Thread Marco Martin
--- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/128950/#review99390 --- for reference, look at what the recent commit b2d91a39740b00

Re: Review Request 128950: Allow Plasma desktop scripting to change panel's screen.

2016-09-21 Thread Marco Martin
> On Sept. 19, 2016, 9:52 p.m., Marco Martin wrote: > > shell/scripting/panel.cpp, line 189 > > > > > > this can't rely on the order of qGuiApp->screens, but should use > > screenpool in shellcorona, it's the on

Re: Review Request 128950: Allow Plasma desktop scripting to change panel's screen.

2016-09-21 Thread David Edmundson
--- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/128950/#review99342 --- shell/scripting/panel.cpp (line 182)

Re: Review Request 128950: Allow Plasma desktop scripting to change panel's screen.

2016-09-20 Thread Kamil Sołtysik
--- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/128950/ --- (Updated Sept. 20, 2016, 2:25 p.m.) Review request for Plasma. Changes

Re: Review Request 128950: Allow Plasma desktop scripting to change panel's screen.

2016-09-20 Thread Kamil Sołtysik
> On Sept. 19, 2016, 9:52 p.m., Marco Martin wrote: > > shell/scripting/panel.cpp, line 189 > > > > > > this can't rely on the order of qGuiApp->screens, but should use > > screenpool in shellcorona, it's the on

Re: Review Request 128950: Allow Plasma desktop scripting to change panel's screen.

2016-09-19 Thread Marco Martin
> On Sept. 19, 2016, 9:43 p.m., David Edmundson wrote: > > The problem with this patch (which highlights a mix we have in plasma in > > general) is that it's mixing whether the screen is managed by the view or > > managed by the containment. > > With this you're overriding the screen() method f

Re: Review Request 128950: Allow Plasma desktop scripting to change panel's screen.

2016-09-19 Thread Marco Martin
--- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/128950/#review99285 --- shell/scripting/panel.cpp (line 189)

Re: Review Request 128950: Allow Plasma desktop scripting to change panel's screen.

2016-09-19 Thread David Edmundson
--- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/128950/#review99284 --- The problem with this patch (which highlights a mix we have i

Review Request 128950: Allow Plasma desktop scripting to change panel's screen.

2016-09-19 Thread Kamil Sołtysik
--- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/128950/ --- Review request for Plasma. Bugs: https://bugs.kde.org/show_bug.cgi?id=363

Re: Plasma desktop scripting

2016-03-20 Thread Franklin Weng
Hi Marco, (a) In Plasma 5.5.4, createActivity("ezgo", "org.kde.plasma.folder"); didn't set the activity name to "ezgo". It still used default one. http://imgur.com/YJvZteD Though the script seems not to be broken anymore. (b) Then, the next step I revert the /usr/share/plasma/shells/org.kde.

Re: Plasma desktop scripting

2016-03-19 Thread Marco Martin
On Friday 18 March 2016 00:07:28 Franklin Weng wrote: > > http://imgur.com/0tUUC9e > > The background image was what I wanted. > > Then, I added line 9, which was the syntax to set the desktop name in > Plasma 4. Then after booting into the Kubuntu live, it became: > > http://imgur.com/Ktl9LwE

Re: Plasma desktop scripting

2016-03-19 Thread Marco Martin
On Thursday 17 March 2016 17:50:27 you wrote: > if you try to assign a name from the desktop scripting shell, does it > complain about some error in the output? btw, to show the interactive console do: qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.showInteractiveConsole the desktop

Re: Plasma desktop scripting

2016-03-19 Thread Marco Martin
On Friday 18 March 2016 00:07:28 Franklin Weng wrote: > Then, I added line 9, which was the syntax to set the desktop name in > Plasma 4. Then after booting into the Kubuntu live, it became: > > http://imgur.com/Ktl9LwE > > It looks like there is an error in line 9 which causes all the remaining

Re: Plasma desktop scripting

2016-03-19 Thread Franklin Weng
error? Thanks, Franklin 2016-03-16 8:00 GMT+08:00 Aleix Pol : > On Mon, Mar 14, 2016 at 3:04 PM, Franklin Weng > wrote: > > Hi, > > > > > > A simple question: > > > > > https://userbase.kde.org/KDE_System_Administration/PlasmaDesktopScripting#Acti

Re: Plasma desktop scripting

2016-03-19 Thread Marco Martin
On Friday 18 March 2016 00:07:28 Franklin Weng wrote: > http://pastebin.com/dvJWWwj1 > > I just couldn't find a way to create an activity, named "ezgo 桌面", with > folderview, as a user default setting. > in this case, instead of var id = createActivity("Desktop", "org.kde.plasma.folder"); you sh

Re: Changes in plasma desktop scripting

2014-03-29 Thread Kevin Krammer
On Saturday, 2014-03-29, 17:32:14, Sebastian Kügler wrote: > On Friday, March 28, 2014 21:56:55 Kevin Krammer wrote: > > I might be confusing terminology but aren't desktops and activities > > orthogonal concepts? > > > > E.g. like having a work and home activity and having a desktop setup with >

Re: Changes in plasma desktop scripting

2014-03-29 Thread Kevin Krammer
On Saturday, 2014-03-29, 17:44:48, Marco Martin wrote: > On Friday 28 March 2014 21:56:55 Kevin Krammer wrote: > > I might be confusing terminology but aren't desktops and activities > > orthogonal concepts? > > > > E.g. like having a work and home activity and having a desktop setup with > > 6 >

Re: Changes in plasma desktop scripting

2014-03-29 Thread Marco Martin
On Friday 28 March 2014 21:56:55 Kevin Krammer wrote: > I might be confusing terminology but aren't desktops and activities > orthogonal concepts? > > E.g. like having a work and home activity and having a desktop setup with 6 > virtual desktops? in this case desktop = desktop containment. in th

Re: Changes in plasma desktop scripting

2014-03-29 Thread Sebastian Kügler
On Friday, March 28, 2014 21:56:55 Kevin Krammer wrote: > I might be confusing terminology but aren't desktops and activities > orthogonal concepts? > > E.g. like having a work and home activity and having a desktop setup with 6 > virtual desktops? Mostly, but we have for example an active desk

Re: Changes in plasma desktop scripting

2014-03-29 Thread Nowardev-Team
>> >> we had still a problem in the plasma desktop scripting api, because it comes >> from a time when one containment == one activity, therefore right now >> adding new activities from the script is pretty much broken. >> >> Since now is the only moment we

Re: Changes in plasma desktop scripting

2014-03-28 Thread Kevin Krammer
Hi Marco, On Thursday, 2014-03-27, 21:39:12, Marco Martin wrote: > Hi all, > > we had still a problem in the plasma desktop scripting api, because it comes > from a time when one containment == one activity, therefore right now > adding new activities from the script is pre

Re: Changes in plasma desktop scripting

2014-03-27 Thread Marco Martin
On Thursday 27 March 2014 21:39:12 Marco Martin wrote: > Hi all, > > we had still a problem in the plasma desktop scripting api, because it comes > from a time when one containment == one activity, therefore right now > adding new activities from the script is pretty much broken.

Changes in plasma desktop scripting

2014-03-27 Thread Marco Martin
Hi all, we had still a problem in the plasma desktop scripting api, because it comes from a time when one containment == one activity, therefore right now adding new activities from the script is pretty much broken. Since now is the only moment we can screw the api, today I made the following

Re: Plasma desktop scripting examples

2011-02-16 Thread Marco Martin
On Wednesday 16 February 2011, Liebe Markus (RtP2/TEF72) wrote: > Hi there, > > I just tried to have a look at the desktop-scripting examples which are > referenced from the techbase article on scripting > (http://techbase.kde.org/KDE_System_Administration/PlasmaDestkopScripting) > > It seems to

Plasma desktop scripting examples

2011-02-16 Thread Liebe Markus (RtP2/TEF72)
Hi there, I just tried to have a look at the desktop-scripting examples which are referenced from the techbase article on scripting (http://techbase.kde.org/KDE_System_Administration/PlasmaDestkopScripting) It seems to me that the given link http://websvn.kde.org/trunk/KDE/kdeexamples/plasma/j

Re: Plasma Desktop Scripting Question

2010-08-01 Thread Jeremiah Summers
On Sun, Aug 1, 2010 at 3:24 PM, Aaron J. Seigo wrote: > On August 1, 2010, Aaron J. Seigo wrote: >> On August 1, 2010, Aaron J. Seigo wrote: >> > On July 31, 2010, Jeremiah Summers wrote: >> > > maybe my philosophy here is flawed and I'm trying to use scripting for >> > > more than what it's meant

Re: Plasma Desktop Scripting Question

2010-08-01 Thread Aaron J. Seigo
On August 1, 2010, Aaron J. Seigo wrote: > On August 1, 2010, Aaron J. Seigo wrote: > > On July 31, 2010, Jeremiah Summers wrote: > > > 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 > > > > i think

Re: Plasma Desktop Scripting Question

2010-08-01 Thread Aaron J. Seigo
On August 1, 2010, Aaron J. Seigo wrote: > On July 31, 2010, Jeremiah Summers wrote: > > 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 > > i think you explained yourself quite well and i'd have a har

Re: Plasma Desktop Scripting Question

2010-08-01 Thread Aaron J. Seigo
On July 31, 2010, Jeremiah Summers wrote: > 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 i think you explained yourself quite well and i'd have a hard time arguing against it other than to try and sav

Re: Plasma Desktop Scripting Question

2010-07-31 Thread Jeremiah Summers
On Sat, Jul 31, 2010 at 5:51 PM, Aaron J. Seigo 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

Re: Plasma Desktop Scripting Question

2010-07-31 Thread Aaron J. Seigo
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 a

Plasma Desktop Scripting Question

2010-07-31 Thread Jeremiah Summers
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

Re: Plasma Desktop Scripting Tutorial for Distros

2010-04-23 Thread Aaron J. Seigo
hi :) On April 23, 2010, Jonathan Riddell wrote: > Aaron Seigo has offered to do a tutorial on Plasma Desktop Scripting. > He's proposing a session of around two hours on IRC to show desktop > scripting to distribution developers and anyone else who's interested. thanks for sp

Plasma Desktop Scripting Tutorial for Distros

2010-04-23 Thread Jonathan Riddell
Aaron Seigo has offered to do a tutorial on Plasma Desktop Scripting. He's proposing a session of around two hours on IRC to show desktop scripting to distribution developers and anyone else who's interested. If you're interested please indicate when you would be available ne