This forum has been archived. All content is frozen. Please use KDE Discuss instead.

panel.hiding seems not to work in Plasma 5 script

Tags: None
(comma "," separated)
Tommy Vercetti
Registered Member
Posts
27
Karma
0
OS
I'd like to create windows-go-below plasma panel via script.
In Plasma 4 such a script works perfectly:
Code: Select all
var panel = new Panel;
panel.height = 20;
panel.minLength = 100;
panel.maxLength = screenGeometry(panel.screen).width;
panel.location = 'top';
panel.alignment = 'right';
panel.hiding = 'windowsbelow';

According to Plasma 5 tutorial the onliest thing I should change in the script above to make it work with Plasma 5 is minLength → minimumLength, maxLength → maximumLength. But I notice that panel doesn't respect hiding property value and remains "Always visible". It can be successfully configured manually, then a line panelVisibility=3 appears in ~/.config/plasmashellrc, but neither panel.panelVisibility = 3 nor panel.visibility = 3 work in the script. This behavior is independent on panel.alignment and panel.location values.
Has anybody faced with problem like that? Is there any solution?
(openSUSE Leap 42.1, Plasma 5.4.3)


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]