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

Implement icon updating upon SIGUSR1 #252

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mfgcb
Copy link

@mfgcb mfgcb commented Aug 19, 2022

As someone else suggested, I implemented an icon reload function upon receiving SIGUSR1 signals.

The function loads the STATE_FILE, checks if the str() for each button has changed and invokes set_button_icon() if so.

If any changes occurred, the api.state is updated and the UI buttons are redrawn to stay in sync.

This would be used by manipulating the STATE_FILE JSON externally and then calling "kill -USR1 pgrep streamdeck" to trigger the reload.

@coolapso
Copy link

HI, seems the main project as reached a stale state as the project owner seems to have disappeared, and we are trying to keep it alive.

you are welcome to participate in the discussion here: #357 so we can actually decide a path forward and hopefully accept your contribution into it.

@coolapso
Copy link

@mfgcb feel free to move this PR to: https://github.com/streamdeck-linux-gui/streamdeck-linux-gui

please be sure to read the new contribution guide specially in regard to git commits.

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

Successfully merging this pull request may close these issues.

3 participants