fix : ensure the current dekstop is mango before executing ipc dispatch#848
Open
Wateir wants to merge 2 commits intomangowm:mainfrom
Open
fix : ensure the current dekstop is mango before executing ipc dispatch#848Wateir wants to merge 2 commits intomangowm:mainfrom
Wateir wants to merge 2 commits intomangowm:mainfrom
Conversation
|
Some peoples' XDG_CURRENT_DESKTOP env var may be wlroots instead of mango. |
Author
Yeah but on this case, a bunch of compositor can be name wlroots, but i'm not against add other form of check than the xdg env var, i don't see any other simple right know https://github.com/hyprwm/Hyprland/blob/933a24caa68d4d217207838bceabd5577838431c/hyprctl/src/main.cpp#L485-L491 |
Author
|
This allow user to have more complexe string than just |
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.
This commit fix a issue that if you run
mmsg [flag] [param]with a valide command on a compositor or a wm which is not mango but have mango install mmsg segfault.Check if
XDG_CURRENT_DEKSTOPis mango, then execute it, if not return a error and close the programTest under Artix Linux x86_64