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

Some small fixes #862

Merged
merged 7 commits into from Jan 17, 2024
Merged

Some small fixes #862

merged 7 commits into from Jan 17, 2024

Conversation

Gliese852
Copy link
Contributor

I made some fixes, they are not particularly related in meaning, I combined them into one PR so as not to spam PRs. Descriptions are available in the corresponding commits.

Privilege elevation can occur through pkexec, where many environment
variables are not accessible.

This fixes the following problem - if howdy-gtk is run without sudo,
authorization occurs via pkexec, and the user variable is empty. So when
adding the first model, it is unclear to which user to add it.
In some GTK themes, when we change a slide, we see a blank window
because there is nothing to trigger the size update, and the slide is
displayed at zero size. Let's force a size update so that it always
works.
The "Video" tab layout did not display correctly when resizing the
window.
The list of users may be empty, and if you try to add a model, a string
concatenation error with None will occur.

For simplicity and consistency with the "Delete" button, we simply check
the size of the list after clicking.
Otherwise, when trying to read the /dev/v4l/by-path directory, an
exception is thrown and the program visually freezes.
Copy link
Owner

@boltgolt boltgolt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent changes!

@musikid musikid merged commit 344eb34 into boltgolt:beta Jan 17, 2024
1 check passed
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.

None yet

3 participants