Skip to content

Instantly share code, notes, and snippets.

@flying-sheep
Last active December 6, 2018 14:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flying-sheep/91fa8cf350e5e92ce946 to your computer and use it in GitHub Desktop.
Save flying-sheep/91fa8cf350e5e92ce946 to your computer and use it in GitHub Desktop.
installs and runs a plasmoid with a plugin
#!/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