Add .desktop entry management for installed editors on Linux#178
Open
ismailivanov wants to merge 1 commit intoMakovWait:mainfrom
Open
Add .desktop entry management for installed editors on Linux#178ismailivanov wants to merge 1 commit intoMakovWait:mainfrom
ismailivanov wants to merge 1 commit intoMakovWait:mainfrom
Conversation
- Create ~/.local/share/applications entry when an editor is added - Delete the entry when an editor is removed - Refresh entry when an editor is renamed - On startup, create missing entries for already-registered editors - Use a PNG icon from the editor directory when available, fall back to the 'godot' theme icon - Set StartupWMClass based on version: Godot_Engine for <4.3, org.godotengine.ProjectManager for >=4.3 - NoDisplay=true keeps entries out of the app grid while allowing the dock to show the correct icon for running editors
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.
On Linux, registers a
.desktopfile in~/.local/share/applications/foreach managed Godot editor so the dock shows the correct icon while the editor
is running.
What it does
.desktopentry when an editor is registeredDetails
NoDisplay=truekeeps entries out of the app grid; the dock still picks them up for window matchingStartupWMClassis set based on version:Godot_Enginefor <4.3,org.godotengine.ProjectManagerfor ≥4.3.pngin the editor directory when available, falls back to thegodottheme icon nameOS.has_feature("linux")guard)Before / After