Repository navigation
Keep the selected graphics driver when reopening the profile type menu - #4884
Open
devreddy1015 wants to merge 1 commit into
Open
devreddy1015 wants to merge 1 commit into
devreddy1015 wants to merge 1 commit into
Conversation
…e menu Leaving the profile type menu with Esc returns the current profile, and _select_profile() always reset the graphics driver to all open-source, silently dropping an NVIDIA selection. Only apply the default when no driver is set yet.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4455
Picking a desktop profile, choosing an NVIDIA driver, then opening "Type" again and leaving with Esc silently resets the graphics driver to "All open-source".
select_profile()returns the current profile on skip, and_select_profile()always overwrote the driver withGfxDriver.AllOpenSource. That matches the package list in the report (xf86-video-amdgpu xf86-video-ati vulkan-radeon xf86-video-nouveau vulkan-nouveau).The default is now only applied when no driver is set yet. Switching from a non-graphical profile still gets the default, since the driver is cleared there.
Side effect: changing an existing selection to Sway now keeps an NVIDIA driver without showing the Sway warning, which only appears when picking the driver. Happy to re-run that check on profile change if you prefer.
Added two tests: the driver survives reopening Type, and a new graphical profile still defaults to all open-source.
AI disclosure: I used Claude Code to trace the cause, write the change and tests, and draft this text. I reviewed and tested the change myself.