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=35839 REVISION

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=35838 BRANCH mart/QJSEngineScripting REVISION DETAIL

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:

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,

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

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=34864 BRANCH mart/QJSEngineScripting REVISION DETAIL https://phabricator.kde.org/D13112 AFFECTED FILES

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

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

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

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

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

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:

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

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

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

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

Re: Plasma desktop scripting

2016-03-19 Thread Franklin Weng
.org/KDE_System_Administration/PlasmaDesktopScripting#Activities_and_desktops > > > > Are the instructions for Plasma desktop scripting in the above link for > > Plasma 4 or Plasma 5? > > > > In the above link the activity creating API is: > > > > var activityId

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

Re: Changes in plasma desktop scripting

2014-03-29 Thread Nowardev-Team
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 changes: activities

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 desktop

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 the

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 virtual

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 6

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 pretty much broken. Since

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: 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. Since now

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

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 me

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 save

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

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 you

Re: Plasma Desktop Scripting Question

2010-08-01 Thread Jeremiah Summers
On Sun, Aug 1, 2010 at 3:24 PM, Aaron J. Seigo ase...@kde.org 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

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

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

Re: Plasma Desktop Scripting Question

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