wsdfhjxc / virtual-desktop-bar

A pager panel widget for KDE Plasma
GNU General Public License v3.0
326 stars 29 forks source link

Deleting a virtual desktop doesn't reflected to plasmoid #44

Closed sahinakkaya closed 3 years ago

sahinakkaya commented 3 years ago

smaller Above one is Virtual Desktop Bar and the below one is default Pager plasmoid. My environment:

wsdfhjxc commented 3 years ago

I can't reproduce it. Does it also happen when the applet is placed directly in a panel, instead of being a desktop widget? To be honest, the plasmoid is primarily intended to be used inside a panel, but it definitely shouldn't display removed desktops...

Also, could you try this in the terminal?

plasmashell -d --replace & disown

This will restart the Plasma desktop and start printing logged debug information in the terminal. Now, when you remove a desktop through the plasmoid, does any QML-related error appear in the log afterwards?

By the way, thanks for the effort of recording a preview GIF, I appreciate that. And I'm sorry that you've been encountering numerous problems with the applet, one after another. But it's been a while since I last used Kubuntu 18.04, and maybe that issue is directly related to older Qt or KDE Frameworks versions, as I can't reproduce the issue on latest 20.04 LTS.

sahinakkaya commented 3 years ago

As you have already mentioned, most of the issues I'm facing are related with older versions of programs that I'm using. Maybe it's time to upgrade my system :) But I have so many configurations currently and I'm afraid to upgrade.

... start printing logged debug information in the terminal.

I can provide this information if you are interested and tell me a way to do it but I'm not going to leave this issue open because the problem is on my side. Thanks for all the effort!

wsdfhjxc commented 3 years ago

Ok, since the --replace option is unavailable, you can do this:

killall plasmashell; plasmashell -d & disown

Then clear the terminal contents (Ctrl+L) and clear scrollback (option in the right-click menu). Once the terminal is more or less empty, try to remove a desktop in the same way as you did earlier. If, for some reason, there's still too much information noise in the terminal, you can press Ctrl+Shift+F and search for virtualdesktopbar, so it's easier to recognize QML-related errors.

sahinakkaya commented 3 years ago

I didn't get any errors when I remove it. There is nothing related with virtualdesktopbar in the output at all.

wsdfhjxc commented 3 years ago

Thanks for the report, it seems quite weird. In that case, I'll spin a Kubuntu 18.04 virtual machine and try to address the issue.

wsdfhjxc commented 3 years ago

Ok, I think it's been fixed.

sahinakkaya commented 3 years ago

Yeah, you're amazing!