ismailof / mediacontroller_plus

Modified version of mediacontroller plasma5 widget
GNU General Public License v2.0
30 stars 11 forks source link

Failed to execute install script #17

Open maeckha opened 3 years ago

maeckha commented 3 years ago

DE: KDE 5.74.0 / Plasma 5.19.5 OS: Manjaro 20.1.1 Mikah Kernel: x86_64 Linux 5.4.67-1-MANJARO

I get the above mentioned error every time I try to install this widget through 'Get widgets' -> 'Download new plasma widgets'.

MurzNN commented 3 years ago

Same problem is on Kubuntu 20.10: KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.74.0 Qt Version: 5.14.2 Kernel Version: 5.8.0-20-generic

ismailof commented 3 years ago

I'm looking at the "Get widgets" dialog code, and this shouldn't have an install script, as it is a plain plasmoid, but I'm trying to follow the code to see why this is happening.

In the meantime could you try to download the plasmoid from the store and install it with the following command? kpackagetool5 --install MediaController+_0.2.8.plasmoid

It might show some extra info about the error, or in the best case the installation succeeds. Thanks!

MurzNN commented 3 years ago

Seems we need to use --upgrade, because of:

$ kpackagetool5 --install MediaController+_0.2.8.plasmoid
Error: Installation of MediaController+_0.2.8.plasmoid failed: ~/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus already exists

And here is upgrade output:

$ kpackagetool5 --upgrade MediaController+_0.2.8.plasmoid
kf.coreaddons.desktopparser: Unable to find service type for service "Plasma/PopupApplet" listed in "~/.local/share/plasma/plasmoids/minimalclock/metadata.desktop"
kf.package: Generated  "~/.local/share/plasma/plasmoids//kpluginindex.json"  ( 14  plugins)
Upgrading package from file: MediaController+_0.2.8.plasmoid
kf.coreaddons.desktopparser: Unable to find service type for service "Plasma/PopupApplet" listed in "~/.local/share/plasma/plasmoids/minimalclock/metadata.desktop"
kf.package: Generated  "~/.local/share/plasma/plasmoids//kpluginindex.json"  ( 15  plugins)
Successfully upgraded MediaController+_0.2.8.plasmoid

So, excluding wrong service type warnings, it installs successfully. Seems there are something broken in "Get new widgets" side, or maybe it don't like those warnings?

ismailof commented 3 years ago

Thanks! It seems it served both purposes.

I'm suspecting of the dialog not detecting correctly that the plasmoid was already installed, and maybe it's fixed on later releases. I'll investigate and let you know

maeckha commented 3 years ago

Hi @MurzNN , I tried the same thing and got the same output. But I still am not able to see the widget as an option in the 'New Widgets' panel. Did it work for you?