Repository navigation
doctor: fix the qtengine and xdg menu prefix checks - #3757
Merged
Merged
Conversation
qtengine had its own plugin check, which printed its rows at the end of the Environment section instead of under QT_QPA_PLATFORMTHEME, with different names and messages than qt6ct or kde. Fold it into the shared platform theme check: the Qt6 plugin is always checked, the Qt5 plugin too when QT_QPA_PLATFORMTHEME names qtengine and a Qt5 build tool can be asked. Also add a row for ~/.config/qtengine/config.json, which is what makes Qt apps follow the DMS colors, and say in verbose mode that an unset QT_QPA_PLATFORMTHEME_QT6 falls back to QT_QPA_PLATFORMTHEME. The XDG_MENU_PREFIX check only looked in /etc/xdg/menus, so a menu file in ~/.config/menus, which the menu spec searches first, was reported as missing. Search the user config dir and every XDG_CONFIG_DIRS entry.
Member
|
/claude review |
Contributor
Claude reviewNo issues found. |
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.
Description
This PR cleans up the
dms doctoroutput for qtengine and fixes a false menu file warning. I added qtengine support in #3019 and messed up its doctor output a bit: it had its own plugin check, so its rows showed up at the end of the Environment section and didn't look like the qt6ct or kde ones.Changes:
QT_QPA_PLATFORMTHEME. The Qt5 plugin is only checked whenQT_QPA_PLATFORMTHEMEnames qtengine, since Qt5 never reads the_QT6variable.~/.config/qtengine/config.json, which says whether it points at the DMS color scheme. It warns when the file can't be parsed, because DMS won't overwrite it then and Qt apps stop following the DMS colors.QT_QPA_PLATFORMTHEME_QT6now says that Qt6 usesQT_QPA_PLATFORMTHEMEinstead of just "Not set". This applies to every theme.Bug I found on the way: the
XDG_MENU_PREFIXcheck only looked in/etc/xdg/menus, so it warned about a missing menu file I had put in~/.config/menus. That's where the menu spec looks first, and Dolphin finds it there. It now searches the user config dir and everyXDG_CONFIG_DIRSentry. I needed that file because uwsm setsXDG_MENU_PREFIX=hyprland-, and no package ships a menu for that prefix.Validation
make fmt,go test ./..., the FreeBSD build and all prek hooks pass.Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings