Fix xdg-portals screen capture

This commit is contained in:
q3aql 2025-05-27 14:26:21 +02:00
parent a8ce050af6
commit b7f69547a0
4 changed files with 19 additions and 6 deletions

View File

@ -36,8 +36,11 @@ exec --no-startup-id ~/.config/sway/startwlrrandr.sh &
# Run xdg-portal for wayland (wlroots) # Run xdg-portal for wayland (wlroots)
# If you have problems, rename this files: # If you have problems, rename this files:
# mv -v ~/.config/systemd/user/xdg-desktop-portal.service.disabled ~/.config/systemd/user/xdg-desktop-portal.service # mv -v ~/.config/systemd/user/xdg-desktop-portal.service ~/.config/systemd/user/xdg-desktop-portal.service.disabled
# mv -v ~/.config/systemd/user/xdg-desktop-portal-wlr.service.disabled ~/.config/systemd/user/xdg-desktop-portal-wlr.service # mv -v ~/.config/systemd/user/xdg-desktop-portal-gtk.service ~/.config/systemd/user/xdg-desktop-portal-gtk.service.disabled
# mv -v ~/.config/systemd/user/xdg-desktop-portal-wlr.service ~/.config/systemd/user/xdg-desktop-portal-wlr.service.disabled
exec --no-startup-id systemctl --user start xdg-desktop-portal.service
exec --no-startup-id systemctl --user start xdg-desktop-portal-gtk.service
exec --no-startup-id systemctl --user start xdg-desktop-portal-wlr.service exec --no-startup-id systemctl --user start xdg-desktop-portal-wlr.service
# Run apps with sudo # Run apps with sudo

View File

@ -0,0 +1,10 @@
[Unit]
Description=Portal service (GTK/GNOME implementation)
PartOf=graphical-session.target
After=graphical-session.target
[Service]
Type=simple
Environment=WAYLAND_DISPLAY=wayland-1
BusName=org.freedesktop.impl.portal.desktop.gtk
ExecStart=/usr/libexec/xdg-desktop-portal-gtk

View File

@ -8,7 +8,7 @@ After=graphical-session.target
#Type=dbus #Type=dbus
Type=simple Type=simple
Environment=WAYLAND_DISPLAY=wayland-1 Environment=WAYLAND_DISPLAY=wayland-1
BusName=org.freedesktop.portal.Desktop #BusName=org.freedesktop.portal.Desktop
#BusName=org.freedesktop.impl.portal.desktop.wlr BusName=org.freedesktop.impl.portal.desktop.wlr
ExecStart=/usr/libexec/xdg-desktop-portal-wlr ExecStart=/usr/libexec/xdg-desktop-portal-wlr
Restart=on-failure Restart=on-failure

View File

@ -3,7 +3,7 @@ Description=Portal service
PartOf=graphical-session.target PartOf=graphical-session.target
[Service] [Service]
Type=dbus Type=simple
#BusName=org.freedesktop.portal.Desktop BusName=org.freedesktop.portal.Desktop
ExecStart=/usr/libexec/xdg-desktop-portal ExecStart=/usr/libexec/xdg-desktop-portal
Slice=session.slice Slice=session.slice