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

[BUG] the setting AppImage doesnt work #38

Open
tuvosyl opened this issue Dec 28, 2024 · 0 comments
Open

[BUG] the setting AppImage doesnt work #38

tuvosyl opened this issue Dec 28, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tuvosyl
Copy link

tuvosyl commented Dec 28, 2024

Describe the bug
its simply doesnt work , i have a fresh arch install , its probably a missing python lib or something like that but cant find the one i need

To Reproduce
./ML4W_Hyprland_Settings-x86_64.AppImage or from waybar
Expected behavior

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

Distribution (please complete the following information):

  • Arch Linux

Additional context
here the output :./ML4W_Hyprland_Settings-x86_64.AppImage
:: Using configuration in: /home/val/.config/ml4w-hyprland-settings
:: hyprctl.sh updated in /home/val/.config/ml4w-hyprland-settings
:: Using default settings.json in /tmp/.mount_ML4W_Hpq8GoI/usr/bin
Traceback (most recent call last):
File "/tmp/.mount_ML4W_Hpq8GoI/usr/bin/ml4w-hyprland-settings.py", line 86, in do_activate
self.initUI()
~~~~~~~~~~~^^
File "/tmp/.mount_ML4W_Hpq8GoI/usr/bin/ml4w-hyprland-settings.py", line 134, in initUI
value = self.getKeywordValue(i["keyword"])
File "/tmp/.mount_ML4W_Hpq8GoI/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_Hpq8GoI/usr/bin/ml4w-hyprland-settings.py", line 419, in
app.run(sys.argv)
~~~~~~~^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/gi/overrides/Gio.py", line 40, 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)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt

My ml4w-hyprland-settings/hyprctl.json just have [] in it , and the hyprctl.sh looks like this :

#!/bin/bash

_ _ _

| |__ _ _ _ __ _ __ __| || |

| '_ | | | | '_ | '__/ __| __| |

| | | | || | |) | | | (__| |_| |

|| ||_, | .__/|| ___|_||

|__/||

Execute this file in the hyprland.conf with exec-always

sleep 3
script=$(readlink -f $0)
path=$(dirname $script)
if [ ! -f $path/hyprctl.json ] ;then
echo ":: ERROR: hyprctl.json not found"
exit 1
fi

jq -c '.[]' $path/hyprctl.json | while read i; do
_val() {
echo $1 | jq -r '.value'
}
_key() {
echo $1 | jq -r '.key'
}
key=$(_key $i)
val=$(_val $i)
echo ":: Execute: hyprctl keyword $key $val"
hyprctl keyword $key $val
done

Thanks for the help !

@tuvosyl tuvosyl added the bug Something isn't working label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants