Bug 367981

Summary: Changing the "screen" property has no effect.
Product: [Plasma] plasmashell Reporter: Pierre Dumuid <pmdumuid>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde
Priority: NOR    
Version: 5.7.3   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Pierre Dumuid 2016-08-30 00:07:06 UTC
In accordance with
https://userbase.kde.org/KDE_System_Administration/PlasmaDesktopScripting#Activities_and_Panels

The "screen" property of a panel should be read/writable, however changing it has no effect.



Reproducible: Always

Steps to Reproduce:
1. Have a dual monitor configuration with at least one panel.
2. Launch runner via "Alt F2", type "scripting console" and select "Desktop shell scripting console"
3. Paste the following code:

r = panels()
print("===> Current:")
print(r[0].screen)
print(r[0].location)
print("===> Setting new value (make them different to current):")
r[0].screen = 1;
r[0].location = 'top';
r[1].reloadConfig()



Actual Results:  
Changing location attribute changes position of panel, (top vs bottom) however changing screen umber has no effect, (moving the panel manually and re-running the script does update the value, so it appears that the value is read-only.


Expected Results:  
Panel should have moved from one screen to the other.

On a side note, the "version" in https://userbase.kde.org/KDE_System_Administration/PlasmaDesktopScripting#Activities_and_Panels

is listed under the list headed by the sentence, "as well as the following read/write properties:" however clearly the version should be read-only!
Comment 1 Pierre Dumuid 2016-08-30 00:11:59 UTC
http://superuser.com/questions/1081120/how-do-i-move-a-kde-plasma-panel-from-commandline-scripts
 - This user made the same observation.
Comment 2 David Edmundson 2016-08-30 10:24:19 UTC

*** This bug has been marked as a duplicate of bug 363592 ***