naglfar / krunner-keepassxc

A small krunner plugin to copy keepassxc entries to clipboard using its Freedesktop.org Secret Service dbus integration.
MIT License
27 stars 3 forks source link

KDE Store #1

Closed alex1701c closed 4 years ago

alex1701c commented 4 years ago

Hello, So far there has not been a standardized place from where to install Krunner plugins, but in the next Plasma release, Krunner will be integrated with the KDE Store. This will make it far more easier to discover and install Krunner plugins. To make sure your plugin is included and available as soon as this is released, add an install and uninstall script to your plugin, and upload your work to the KDE store (https://store.kde.org/browse/cat/628/order/latest/).

If you have any questions, or if you need help, don't hesitate to ask!

Thank you!

naglfar commented 4 years ago

Hey, thanks for the heads up! I cobbled something together and put it up there for now. Since this isn't a real Krunner plugin in the traditional sense but a python application that needs to be running to communicate with Krunner I'm not a hundred percent sure I stuck to all the right conventions, so feel free to tell me if anything's amiss.

alex1701c commented 4 years ago

One thing you should adjust is that the install script needs to be located in the root of the project. Otherwise there could be unexpected behavior when setting the working directory, thats why we settled for not looking through the subdirectories. We are also thinking about further standardizing the installation process, but that will take time.

Also when runnning the install script I get the error message: cp: cannot stat '/home/user/projects/krunner-keepassxc/install/kdestore/krunner-keepassxc.pyz': No such file or directory realPath called with a relative path 'path/share/kservices5/', please fix

Besides that it is looking very good!

naglfar commented 4 years ago

Sounds like you're running the script right out of the repository, which isn't actually supposed to work, sorry! It takes quite a few build tools and steps to get the whole thing up and running to build the .pyz file and at the end of that process is a task that bundles everything for the store up into a flat archive, which I uploaded to the store.

If you download that archive from the store everything should install fine: https://store.kde.org/p/1414906/

The .pyz file is basically a zip archive containing a complete optimized python environment, so I'm still shipping source, but it's skipping all the downloading and installing the user would need to do to get the project up and running. Shipping python projects to the end user still kind of sucks, but I feel this is the best I can do with what is there.

alex1701c commented 4 years ago

Ah, I see. And the pyz archive is a really good way!

alex1701c commented 4 years ago

Still get the warning: realPath called with a relative path 'path/share/kservices5/', please fix.

Besides that the store integration works!