From 1407d173b0b026dc1eb3a5da535be1e833eda295 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Tue, 14 Jan 2025 20:38:15 -0700 Subject: [PATCH] replace template name --- krha.py | 2 +- org.kde.krha.service | 3 --- plasma-runner-krha.desktop | 6 +++--- 3 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 org.kde.krha.service diff --git a/krha.py b/krha.py index ac10916..8388894 100755 --- a/krha.py +++ b/krha.py @@ -16,7 +16,7 @@ iface = "org.kde.krunner1" class Runner(dbus.service.Object): def __init__(self): - dbus.service.Object.__init__(self, dbus.service.BusName("org.kde.krha", dbus.SessionBus()), objpath) + dbus.service.Object.__init__(self, dbus.service.BusName("dev.suah.krha", dbus.SessionBus()), objpath) self.api_key = os.environ.get("HA_API_KEY", "") self.ha_url = os.environ.get("HA_URL", "").rstrip('/') diff --git a/org.kde.krha.service b/org.kde.krha.service deleted file mode 100644 index 4f590fc..0000000 --- a/org.kde.krha.service +++ /dev/null @@ -1,3 +0,0 @@ -[D-BUS Service] -Name=org.kde.krha -Exec=/usr/bin/python3 "/home/qbit/projects/krha/krha.py" diff --git a/plasma-runner-krha.desktop b/plasma-runner-krha.desktop index bc7aa80..aa8af6c 100644 --- a/plasma-runner-krha.desktop +++ b/plasma-runner-krha.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Name=krha -Comment=krha Runner written in Python +Comment=krha a home assistant krunner X-KDE-ServiceTypes=Plasma/Runner Type=Service Icon=planetkde @@ -8,8 +8,8 @@ X-KDE-PluginInfo-Author=%{AUTHOR} X-KDE-PluginInfo-Email=%{EMAIL} X-KDE-PluginInfo-Name=krha X-KDE-PluginInfo-Version=1.0 -X-KDE-PluginInfo-License=LGPL +X-KDE-PluginInfo-License=ISC X-KDE-PluginInfo-EnabledByDefault=true X-Plasma-API=DBus -X-Plasma-DBusRunner-Service=org.kde.krha +X-Plasma-DBusRunner-Service=dev.suah.krha X-Plasma-DBusRunner-Path=/krha