Skip to content

Commit

Permalink
Log system info in all applications
Browse files Browse the repository at this point in the history
  • Loading branch information
infirit committed Oct 17, 2024
1 parent d05fd33 commit 9d21c61
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions blueman/main/Adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def do_quit(_: object) -> bool:
self.quit()
return False

log_system_info()

s = GLib.unix_signal_source_new(signal.SIGINT)
s.set_callback(do_quit)
s.attach()
Expand Down
2 changes: 2 additions & 0 deletions blueman/main/Applet.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def do_quit(_: object) -> bool:
self.quit()
return False

log_system_info()

s = GLib.unix_signal_source_new(signal.SIGINT)
s.set_callback(do_quit)
s.attach()
Expand Down
2 changes: 2 additions & 0 deletions blueman/main/Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def do_quit(_: object) -> bool:
self.quit()
return False

log_system_info()

s = GLib.unix_signal_source_new(signal.SIGINT)
s.set_callback(do_quit)
s.attach()
Expand Down
4 changes: 3 additions & 1 deletion blueman/main/Sendto.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from blueman.bluez.obex.Manager import Manager
from blueman.bluez.obex.Client import Client
from blueman.bluez.obex.Transfer import Transfer
from blueman.Functions import format_bytes
from blueman.Functions import format_bytes, log_system_info
from blueman.main.SpeedCalc import SpeedCalc
from blueman.gui.CommonUi import ErrorDialog

Expand All @@ -39,6 +39,8 @@ def __init__(self, device: Device, adapter_path: ObjectPath, files: Iterable[str
type_hint=Gdk.WindowTypeHint.DIALOG
)

log_system_info()

self.b_cancel = self.add_button(_("_Stop"), Gtk.ResponseType.CLOSE)
self.b_cancel.props.receives_default = True
self.b_cancel.props.use_underline = True
Expand Down
3 changes: 3 additions & 0 deletions blueman/main/Services.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from typing import Optional

from blueman.main.Builder import Builder
from blueman.Functions import log_system_info
import blueman.plugins.services
from blueman.plugins.ServicePlugin import ServicePlugin

Expand All @@ -26,6 +27,8 @@ def do_quit(_: object) -> bool:
self.quit()
return False

log_system_info()

s = GLib.unix_signal_source_new(signal.SIGINT)
s.set_callback(do_quit)
s.attach()
Expand Down
3 changes: 3 additions & 0 deletions blueman/main/Tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import signal
import sys
from blueman.Functions import log_system_info
from blueman.main.DBusProxies import AppletService
from gi.repository import Gio, GLib

Expand All @@ -18,6 +19,8 @@ def do_quit(_: object) -> bool:
self.quit()
return False

log_system_info()

s = GLib.unix_signal_source_new(signal.SIGINT)
s.set_callback(do_quit)
s.attach()
Expand Down

0 comments on commit 9d21c61

Please sign in to comment.