-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Describe the bug
-
When opening ml4w.hyprlandsettings from the terminal or from the ML4W sidebar, it crashes a few seconds later.
-
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

2. No variables

