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

Bluetooth settings button does nothing on non-GNOME #131

Open
WhyNotHugo opened this issue Nov 9, 2024 · 0 comments
Open

Bluetooth settings button does nothing on non-GNOME #131

WhyNotHugo opened this issue Nov 9, 2024 · 0 comments

Comments

@WhyNotHugo
Copy link

Problem description

Clicking the bluetooth settings does nothing, but indicates an error:

Traceback (most recent call last):
  File "/usr/share/siglo/siglo/window.py", line 262, in on_bluetooth_settings_clicked
    subprocess.Popen(["gnome-control-center", "bluetooth"])
  File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'gnome-control-center'

It seems that siglo internally relies on a gnome-specific component for this functionality.

Proposed solution

Perhaps this button should be hidden if gnome-control-center is not in $PATH? This should be trivial to detect with python's shutil.which function.

Related

#84 is somewhat related, but not the same issue, since that one will also reproduce on GNOME.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant