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

Modified detection of current profile directly using 'envycontrol --query' #25

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ihpled
Copy link

@ihpled ihpled commented Dec 25, 2024

I modified how the current profile is checked, using "envycontrol --query" instead of verifying the presence of specific files.
I had some issues with the latter method on Fedora 41.
For example, even though "envycontrol --query" returned the "integrated" profile, the GNOME extension always reported "hybrid" because the file "/lib/udev/rules.d/50-remove-nvidia.rules" was not present.
Using "envycontrol --query" directly resolves the issue.
I also added "checked: true" to the quick setting button because imo it better shows that selected profile is active (there is always an active profile).

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.

1 participant