Bug 367981 - Changing the "screen" property has no effect.
Summary: Changing the "screen" property has no effect.
Status: RESOLVED DUPLICATE of bug 363592
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 5.7.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-30 00:07 UTC by Pierre Dumuid
Modified: 2016-08-30 10:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***