Skip to content

Fix screen share by force-starting portal services (#1604)#1669

Open
Vic-41148 wants to merge 1 commit into
mylinuxforwork:mainfrom
Vic-41148:fix/1604-screen-share-portal-autostart
Open

Fix screen share by force-starting portal services (#1604)#1669
Vic-41148 wants to merge 1 commit into
mylinuxforwork:mainfrom
Vic-41148:fix/1604-screen-share-portal-autostart

Conversation

@Vic-41148

Copy link
Copy Markdown

Description

Adds a single exec-once line to autostart.conf that force-starts both portal services on boot, fixing browser/OBS/Discord screen sharing.

Changes

  • Bug Fixes

Context

Hyprland never activates graphical-session.target. Both xdg-desktop-portal.service and xdg-desktop-portal-hyprland.service depend on that target via Requisite=/PartOf=, so they fail to start on boot with a dependency error. This breaks screencast entirely — Meet, Discord, and OBS all rely on these services. The fix force-starts both with --ignore-dependencies, bypassing the broken dependency check. Builds on the workaround originally posted by @anikmar in #1604, extended here to also cover xdg-desktop-portal-hyprland.service, which needs the same fix separately.

How Has This Been Tested?

  • Tested on Arch Linux/Based Distro.

Confirmed xdg-desktop-portal.service and xdg-desktop-portal-hyprland.service both go active (running) after a fresh boot, and screen sharing works in Google Meet (browser) and OBS (PipeWire source).

Checklist

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes do not introduce new warnings.

Related Issues

Fixes #1604

Additional Notes

Minimal, single-line diff in autostart.conf — no other files touched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] browser screen cast does not work

1 participant