Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove some debug output from KDE D-Bus module #426

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions kde-kwin-dbus-service/toshy_kde_dbus_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def check_environment():
check_environment()


if SESSION_TYPE == 'wayland' and DESKTOP_ENV in ['kde', 'plasma']:
# Adding 'lxqt' as a possible desktop environment where 'kwin_wayland' might be used.
# TODO: Add a way to auto-install the KWin script in LXQt? Or will it already auto-install?
if SESSION_TYPE == 'wayland' and DESKTOP_ENV in ['kde', 'plasma', 'lxqt']:
pass
else:
debug(f'{LOG_PFX}: Not a Wayland+KDE environment. Exiting.')
Expand Down Expand Up @@ -134,19 +136,19 @@ def __init__(self, session_bus, object_path, interface_name):

@dbus.service.method(TOSHY_KDE_DBUS_SVC_IFACE, in_signature='sss')
def NotifyActiveWindow(self, caption, resource_class, resource_name):
debug(f'{LOG_PFX}: NotifyActiveWindow() called...')
# debug(f'{LOG_PFX}: NotifyActiveWindow() called...')
self.caption = str(caption)
self.resource_class = str(resource_class)
self.resource_name = str(resource_name)
debug(f'{LOG_PFX}: Active window attributes:'
f"\n\t caption = '{self.caption}'"
f"\n\t resource_class = '{self.resource_class}'"
f"\n\t resource_name = '{self.resource_name}'"
)
# debug(f'{LOG_PFX}: Active window attributes:'
# f"\n\t caption = '{self.caption}'"
# f"\n\t resource_class = '{self.resource_class}'"
# f"\n\t resource_name = '{self.resource_name}'"
# )

@dbus.service.method(TOSHY_KDE_DBUS_SVC_IFACE, out_signature='a{sv}')
def GetActiveWindow(self):
debug(f'{LOG_PFX}: GetActiveWindow() called...')
# debug(f'{LOG_PFX}: GetActiveWindow() called...')
return { 'caption': self.caption,
'resource_class': self.resource_class,
'resource_name': self.resource_name }
Expand Down