luisbocanegra / plasma-panel-modes-switcher

Switch between two KDE Plasma panel profiles on the fly
https://store.kde.org/p/2130222
GNU General Public License v3.0
5 stars 0 forks source link

Unable to install widget #3

Open Lgmrszd opened 4 months ago

Lgmrszd commented 4 months ago

Updated to Plasma 6.0 recently and trying to install this widget. Installing directly from "Download New Plasma Widgets" is simply not working without any kind of message. Attempting to install downloaded file plasmoid-panel-modes-switcher-v0.1.1.plasmoid results in "Installation Failure" error dialog simply saying "Installing the package /home/lgm/Downloads/plasmoid-panel-modes-switcher-v0.1.1.plasmoid failed."

I don't know which command is used to install plasmoids so I don't have any logs

luisbocanegra commented 4 months ago

Please try installing from Discover, I also have had problems installing plasmoids from "Download New Plasma Widgets" but Discover worked fine. This could be a bug in Plasma if it happens with other widgets too.

Lgmrszd commented 4 months ago

I don't have Discover on my system (NixOS), just tried to get it and it's actually broken unfortunately. I guess for now I'll just wait if plasma gets fixes for that soon.

A bit offtopic question: I've noticed that there is a window action buttons widget on this plugin's demo video. Can you link that widget? I can't find it for Plasma 6.

luisbocanegra commented 4 months ago

I don't have Discover on my system (NixOS), just tried to get it and it's actually broken unfortunately. I guess for now I'll just wait if plasma gets fixes for that soon.

As a workaround you can download the file install it with plasmapkg2 -i plasmoid-panel-modes-switcher-v0.1.1.plasmoid

A bit offtopic question: I've noticed that there is a window action buttons widget on this plugin's demo video. Can you link that widget? I can't find it for Plasma 6.

That's https://github.com/moodyhunter/applet-window-buttons6

Lgmrszd commented 4 months ago

I don't have plasmapkg2 and it appears it is only present for plasma 5, but I am not sure. But I managed to solve the problem with Discover. It failed to install the widget at first (because turns out it got partially installed and the files were present already) but after clearing those I got it installed. However it is not working, with the following error: luisbocanegra.panel.modes.switcher/contents/ui/main.qml:9:1: module "org.kde.plasma.private.keyboardindicator" is not installed

image

luisbocanegra commented 4 months ago

org.kde.plasma.private.keyboardindicator

That's a leftover from previous experiments and was removed in version 0.1.1. It seems discover installed the old version, you could remove that line but you better install the latest where I fixed a crash. To get around all this you can just clone and replace the files from package/ into ~/.local/share/plasma/plasmoids/luisbocanegra.panel.modes.switcher/ and it should work fine.

Lgmrszd commented 4 months ago

Yup, that got it working. Thanks! Not closing this for now as I was able to install other widgets through "Download New Plasma Widgets" just fine, so maybe this is a packaging issue

luisbocanegra commented 4 months ago

I have now opened a bug report about this problem on KDE Bugzilla https://bugs.kde.org/show_bug.cgi?id=482349 hopefully they are able to figure out why this is happening and can fix this soon. Fixed for Frameworks 6.1

Let's keep this issue open until that version is released