plasma crashes with a js
Nowardev-Team
nowardev at gmail.com
Thu Dec 29 12:56:16 UTC 2016
hello i was using plasma shell interactive console with this code on plasma
5.7.5 (qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.
showInteractiveConsole
)
and plasma just crashes can you reproduce this ?
i will paste down here the code :
> var panel = new Panel
> var panelScreen = panel.screen
> var freeEdges = {"bottom": true, "top": true, "left": true, "right": true}
>
> for (i = 0; i < panelIds.length; ++i) {
> var tmpPanel = panelById(panelIds[i])
> if (tmpPanel.screen == panelScreen) {
> // Ignore the new panel
> if (tmpPanel.id != panel.id) {
> freeEdges[tmpPanel.location] = false;
> }
> }
> }
>
> if (freeEdges["bottom"] == true) {
> panel.location = "bottom";
> } else if (freeEdges["top"] == true) {
> panel.location = "top";
> } else if (freeEdges["left"] == true) {
> panel.location = "left";
> } else if (freeEdges["right"] == true) {
> panel.location = "right";
> } else {
> // There is no free edge, so leave the default value
> panel.location = "top";
> }
>
> panel.height = gridUnit * 2
>
> var volume = panel.addWidget("org.kde.plasma.volume")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161229/88dc014d/attachment-0001.html>
More information about the Plasma-devel
mailing list