Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Commit

Permalink
Fix a bug in the icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
zefr0x committed Feb 25, 2022
1 parent b16b0a9 commit 0f99880
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
File renamed without changes
5 changes: 4 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ set -e

mkdir -p ~/.local/share/kservices5/
mkdir -p ~/.local/share/dbus-1/services/
mkdir -p ~/.local/share/pixmaps

sed "s|%{ICON}|${PWD}/assets/icon.png|" "plasma-runner-zoom.desktop" > ~/.local/share/kservices5/plasma-runner-zoom.desktop
cp assets/com.github.zer0-x.krunner-zoom.png ~/.local/share/pixmaps/

sed "s|%{ICON}|${HOME}/.local/share/pixmaps/com.github.zer0-x.krunner-zoom.png|" "plasma-runner-zoom.desktop" > ~/.local/share/kservices5/plasma-runner-zoom.desktop
sed "s|%{PROJECTDIR}/%{APPNAMELC}.py|${PWD}/main.py|" "com.github.zer0-x.krunner-zoom.service" > ~/.local/share/dbus-1/services/com.github.zer0-x.krunner-zoom.service

kquitapp5 krunner
6 changes: 5 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
MAX_RESULTS = 13


icon_path = str(Path.joinpath(Path.cwd(), "assets", "icon.png"))
icon_path = str(
Path.joinpath(
Path.home(), ".local", "share", "pixmaps", "com.github.zer0-x.krunner-zoom.png"
)
)

DBusGMainLoop(set_as_default=True)

Expand Down
1 change: 1 addition & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ set -e

rm ~/.local/share/kservices5/plasma-runner-zoom.desktop
rm ~/.local/share/dbus-1/services/com.github.zer0-x.krunner-zoom.service
rm ~/.local/share/pixmaps/com.github.zer0-x.krunner-zoom.png
kquitapp5 krunner

0 comments on commit 0f99880

Please sign in to comment.