Skip to content

Hyprland settings either crashes or opens without variables #33

@Abraam2

Description

@Abraam2

Describe the bug

  1. When opening ml4w.hyprlandsettings from the terminal or from the ML4W sidebar, it crashes a few seconds later.

  2. In cases where it doesn’t close by itself, when I press the "All Variables" button, there is nothing to edit.

Error messages

1. Crash

Exception in thread Thread-1 (initUI): Traceback (most recent call last): File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner self.run() File "/usr/lib/python3.12/threading.py", line 1012, in run self._target(*self._args, **self._kwargs) File "/app/share/hyprland-settings/hyprland_settings/main.py", line 138, in initUI value = lib.getKeywordValue(i["value"], self.rowtype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/share/hyprland-settings/hyprland_settings/library/library.py", line 190, in getKeywordValue if custom_val == "1": ^^^^^^^^^^ UnboundLocalError: cannot access local variable 'custom_val' where it is not associated with a value

2. No variables

Exception in thread Thread-1 (initUI): Traceback (most recent call last): File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner self.run() File "/usr/lib/python3.12/threading.py", line 1012, in run self._target(*self._args, **self._kwargs) File "/app/share/hyprland-settings/hyprland_settings/main.py", line 138, in initUI value = lib.getKeywordValue(i["value"], self.rowtype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/share/hyprland-settings/hyprland_settings/library/library.py", line 190, in getKeywordValue if custom_val == "1": ^^^^^^^^^^ UnboundLocalError: cannot access local variable 'custom_val' where it is not associated with a value :: Execute: hyprctl keyword general:col.inactive_border 0xff001e2b Couldn't connect to /run/user/1000/hypr/4e242d086e20b32951fdc0ebcbfb4d41b5be8dcc_1755265779_546872666/.socket.sock. (4) :: Execute: hyprctl keyword general:col.active_border 0xff99c1f1 Couldn't connect to /run/user/1000/hypr/4e242d086e20b32951fdc0ebcbfb4d41b5be8dcc_1755265779_546872666/.socket.sock. (4)

Additional context

This error does not occur 100% of the time; it is relatively arbitrary. Sometimes after restarting the system, the app works as expected, but in many other cases one of these two errors occurs. In most cases, the app does not work properly.

Distribution

Arch Linux

ML4W version

2.9.9

Screenshots

1. Crash

Image

2. No variables

Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions