Skip to content

[BUG] ml4w-hyprland fails to load from gui or commandline #64

@wilybudha

Description

@wilybudha

Describe the bug
Receiving errors when trying to run ml4w-hyprland when from a terminal. When clicking on the gear icon in the GUI, nothing happens. Here are the error messages when trying to run from the terminal:

Traceback (most recent call last):
  File "/tmp/.mount_ML4W_Hy3HOyS/usr/bin/ml4w-hyprland-settings.py", line 86, in do_activate
    self.initUI()
    ~~~~~~~~~~~^^
  File "/tmp/.mount_ML4W_Hy3HOyS/usr/bin/ml4w-hyprland-settings.py", line 134, in initUI
    value = self.getKeywordValue(i["keyword"])
  File "/tmp/.mount_ML4W_Hy3HOyS/usr/bin/ml4w-hyprland-settings.py", line 363, in getKeywordValue
    if int_val == "1":
       ^^^^^^^
UnboundLocalError: cannot access local variable 'int_val' where it is not associated with a value
^CTraceback (most recent call last):
  File "/tmp/.mount_ML4W_Hy3HOyS/usr/bin/ml4w-hyprland-settings.py", line 419, in <module>
    app.run(sys.argv)
    ~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/gi/overrides/Gio.py", line 46, in run
    with register_sigint_fallback(self.quit):
         ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/usr/lib/python3.13/contextlib.py", line 148, in __exit__
    next(self.gen)
    ~~~~^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/gi/_ossighelper.py", line 239, in register_sigint_fallback
    signal.default_int_handler(signal.SIGINT, None)

To Reproduce
Steps to reproduce the behavior:
run ml4w-hyprland in the terminal

Expected behavior
settings app should run

Screenshots
If applicable, add screenshots to help explain your problem.

Distribution (please complete the following information):

  • Arch Linux

Additional context

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions