Fix xdg-portals screen capture
This commit is contained in:
parent
a8ce050af6
commit
b7f69547a0
@ -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
|
||||||
|
10
.config/systemd/user/xdg-desktop-portal-gtk.service
Normal file
10
.config/systemd/user/xdg-desktop-portal-gtk.service
Normal 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
|
@ -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
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user