This commit is contained in:
Aaron Bieber 2025-01-14 20:39:52 -07:00
parent 1407d173b0
commit aab92329bc
No known key found for this signature in database
3 changed files with 15 additions and 37 deletions

15
LICENSE Normal file
View File

@ -0,0 +1,15 @@
/*
* Copyright (c) 2025 Aaron Bieber <aaron@bolddaemon.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

View File

@ -1,22 +0,0 @@
#!/usr/bin/env bash
# Exit if something fails
set -ex
if [[ -z "$XDG_DATA_HOME" ]]; then
prefix=~/.local/share
else
prefix="$XDG_DATA_HOME"
fi
mkdir -p $prefix/krunner/dbusplugins/
mkdir -p $prefix/dbus-1/services/
PY=$(which python3)
cp plasma-runner-krha.desktop $prefix/krunner/dbusplugins/
sed "s|/home/qbit/projects/krha/krha.py|${PWD}/krha.py|" "org.kde.krha.service" > $prefix/dbus-1/services/org.kde.krha.service
sed "s|/usr/bin/python3|${PY}|" "org.kde.krha.service" > $prefix/dbus-1/services/org.kde.krha.service
kquitapp6 krunner

View File

@ -1,15 +0,0 @@
#!/usr/bin/env bash
# Exit if something fails
set -ex
if [[ -z "$XDG_DATA_HOME" ]]; then
prefix=~/.local/share
else
prefix="$XDG_DATA_HOME"
fi
rm $prefix/krunner/dbusplugins/plasma-runner-krha.desktop
rm $prefix/dbus-1/services/org.kde.krha.service
kquitapp6 krunner