Last active
December 6, 2018 14:28
-
-
Save flying-sheep/91fa8cf350e5e92ce946 to your computer and use it in GitHub Desktop.
installs and runs a plasmoid with a plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#usage: ./plasmoid-tempinstall-run.sh plasmoidname | |
export QML2_IMPORT_PATH="$HOME/.local/share/qml" | |
myplasmoid=$1 | |
mysopath="$QML2_IMPORT_PATH/org/kde/plasma/private/$myplasmoid" | |
if [[ -d "$HOME/.local/share/plasma/plasmoids/org.kde.plasma.$myplasmoid" ]]; then | |
plasmapkg2 -u ./package | |
else | |
plasmapkg2 -i ./package | |
fi | |
mkdir -p $mysopath | |
cp "./build/lib${myplasmoid}plugin.so" "$mysopath" | |
cp "./plugin/qmldir" "$mysopath" | |
#./plugin/qmldir should read: | |
# module org.kde.plasma.private.$myplasmoid | |
# plugin ${myplasmoid}plugin | |
kbuildsycoca5 | |
plasmawindowed "org.kde.plasma.$myplasmoid" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment