Skip to content

Commit

Permalink
fix: fixed issues that prevented script from running, removed comment…
Browse files Browse the repository at this point in the history
…ed out code
  • Loading branch information
gerblesh committed Jul 8, 2023
1 parent 476c872 commit 22b83c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/ublue_update/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import tomllib
import argparse
from ublue_update.notification_manager import NotificationManager
from gi.repository import GLib


def check_cpu_load():
Expand Down Expand Up @@ -123,11 +124,6 @@ def run_updates():
f"Error in update script: {file}, check logs for more info",
3,
)
# notify2.Notification(
# "System Updater",
# f"Error in update script: {file}, check logs for more info",
# "notification-message-im",
# ).show()
else:
log.info(f"could not execute file {full_path}")

Expand Down
2 changes: 1 addition & 1 deletion src/ublue_update/notification_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self, app_name, bus):
path = "/" + item.replace(".", "/")
self._app_name = app_name
self._actions = []
self._notify_interface = dbus.Interface(self._bus.get_object(item, path), item)
self._notify_interface = dbus.Interface(bus.get_object(item, path), item)
bus.add_signal_receiver(self._on_action, "ActionInvoked")

def get_action_list(self, actions):
Expand Down

0 comments on commit 22b83c8

Please sign in to comment.