You have been subscribed to a public bug:

I recently use the Task Switcher dialog to install a third-party
switcher. However, after installing the switcher and activating it, I
received the error:

window switcher installation is broken: resources are missing

so I uninstalled that switcher, but the issue persisted, even for
system-installed switchers -- all except the compiz ones (Cover Switch
and Flip Switch), ie I gather it remained for all the ones relying on
Qt.

killing kwin_x11 and restarting in a console, I saw the error:

```
file:///usr/share/kwin/tabbox/informative/contents/ui/main.qml:134: TypeError: 
Cannot call method 'longestCaption' of null
```

so I edited that file, changing the contents of calculateMaxRowWidth to
be:

```
118                 function calculateMaxRowWidth() {
119                     var width = 0;
120                     var model = tabBox.model;
121                     var caption = tabBox.model ? 
tabBox.model.longestCaption() : ""; // safely get thelongest caption
122                     var textElement = Qt.createQmlObject(
123                         'import QtQuick 2.0;'
124                         + 'Text {\n'
125                         + '     text: "' + 
dialogMainItem.itemCaption(caption, true) + '"\n'
126                         + '     font.bold: true\n'
127                         + '     visible: false\n'
128                         + '}',
129                         compactListView, "calculateMaxRowWidth");
130                     width = Math.max(textElement.width, width);
131                     textElement.destroy();
132                     return width + 16 + 2 * dialogMainItem.textMargin + 
hoverItem.margins.right + hoverItem.margins.left
133                 }

```

and now things are all working properly again. I would suggest this (or
something similar) to safeguard against this kind of problem -- there
didn't seem to be anything I could do from user-space to sort this out,
as I had already uninstalled the only switcher I had installed when the
error started happening.

** Affects: kwin (Ubuntu)
     Importance: Undecided
         Status: New

-- 
kwin-addons: after installing any third-party task-switcher, all non-compiz 
switchers error
https://bugs.launchpad.net/bugs/1835530
You received this bug notification because you are a member of Kubuntu Bugs, 
which is subscribed to kwin in Ubuntu.

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to