https://bugs.kde.org/show_bug.cgi?id=422119

            Bug ID: 422119
           Summary: kpackagetool5 deletes all widgets upon installation /
                    update of widget from folder
           Product: frameworks-kpackage
           Version: 5.70.0
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: critical
          Priority: NOR
         Component: default
          Assignee: notm...@gmail.com
          Reporter: s...@dillbox.me
  Target Milestone: ---

SUMMARY

Using kpackagetool5 / plasmapkg2 to install, update or remove a package from a
folder will occasionally delete all locally installed widgets. I'm not sure if
this is relevant, but in my case, the contents of the folder were:
    kpluginindex.json
    launchpadPlasma
    org.communia.apptitle
    org.kde.latte.separator
    org.kde.latte.sidebarbutton
    org.kde.latte.spacer
    org.kde.netspeedWidget
    org.kde.plasma.chiliclock
    org.kde.plasma.inlineBattery
    org.kde.plasma.uswitcher
    org.kde.plasma.webbrowser
    org.kpple.kppleMenu

(scenario 1)

STEPS TO REPRODUCE
1. "plasmapkg2 -r [path]" to remove a previously installed plugin, after which
the plugin folder: this gives the output
    kf5.kpackage: Generated 
"/home/sora/.local/share/plasma/plasmoids//kpluginindex.json"  ( 11  plugins)
    Successfully uninstalled [path]
which is occasionally preceded by 3 iterations of
    kf5.kpackage: No metadata file in the package, expected it at:
"/home/sora/.local/share/plasma/plasmoids/"
2. plasmapkg2 -u [path]" to [incorrectly] update said plugin instead of using
"-i" for a fresh install: this gives the output
    Upgrading package from file:
/tmp/kdeplasma-addons/applets/webbrowser/package/
    Successfully upgraded [path]

OBSERVED RESULT
All folders previously present in ~/.local/share/plasma/plasmoids are gone and
only the plugin referenced by "-u" remains, also there's no kpluginindex.json

EXPECTED RESULT
"plasmapkg2 -u" should either complain about the package not being installed
and terminate or better, behave like "-i" in this situation

(scenario 2)

STEPS TO REPRODUCE
1. "plasmapkg2 -r [path]" to remove a plugin that's not installed in the first
place: this gives the output
    Successfully uninstalled [path]

OBSERVED RESULT
The entire folder ~/.local/share/plasma/plasmoids is gone

EXPECTED RESULT
"plasmapkg2 -r" should fail in this situation

(scenario 3)

STEPS TO REPRODUCE
1. ??? <- I couldn't reliably reproduce this exact scenario as I couldn't work
out the preconditions that have to be met but this has happened to me at least
twice
2. "plasmapkg -i [path]" which gives the output:
    kf5.kpackage: Generated
"/home/sora/.local/share/plasma/plasmoids//kpluginindex.json"  ( 2  plugins)
    Successfully installed [path]

OBSERVED RESULT
like scenario 1, but a kpluginindex.json is generated

EXPECTED RESULT
the installation of the package alongside the previously installed packages

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro, kernel 5.6.12
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Scenario 2 seems to be a duplicate of #410682, but scenario 1 and 3 seemed
sufficiently different to #410682 to be filed separately.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to