Fix: Screen sharing black screen issue due to xdg-desktop-portal conf… #1107
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.
Descripción
This pull request addresses a common issue where screen sharing on Wayland (specifically Hyprland) results in a black screen in Chromium-based browsers, often due to conflicts between multiple xdg-desktop-portal instances.
The solution has two parts:
These changes ensure a more stable screen-sharing experience for new Fedora installations using this configuration.
Cambios
Context
This change is necessary to fix a long-standing bug where users with multiple desktop environments installed (like GNOME alongside Hyprland) experience a black screen when trying to share their screen. The xdg.sh script, as it was, would start conflicting portals, and the setup-fedora.sh did not provide a mechanism to set Hyprland as the default portal, leaving the issue to manual intervention. This PR solves the problem by making the fix part of the standard setup process.
How Has This Been Tested?
Checklist
Please ensure your pull request meets the following requirements:
Screenshots
Related Issues
N/A
Additional Notes
This fix is particularly important for Fedora users, as the default installation process often leaves multiple desktop portals, which leads to this screen-sharing issue. The solution provides a clean and reliable fix without requiring manual user intervention after installation.