Sweets

Desktop Portals

Save dialogs, screen sharing, and keyring access through xdg-desktop-portal.

Portals let apps open file dialogs and share your screen. Sweets sets them up for you when you start it with sweets-session.

What to install

PackageProvides
xdg-desktop-portalThe portal service
xdg-desktop-portal-gtkOpen and save dialogs
xdg-desktop-portal-wlrScreenshots and screen sharing

To pick a window when sharing a single window, xdg-desktop-portal-wlr needs a chooser such as slurp or rofi. See its documentation for chooser_cmd.

A shared window keeps updating when you switch workspaces. Minimizing the window ends the share.

On systems without systemd, make sure your session starts the portal services.

Troubleshooting

ProblemFix
Save dialog fails with Could not activate ... portal.DesktopLog out and start Sweets again with sweets-session

Keyring (optional)

Password managers and keyrings like gnome-keyring or KeePassXC work without any Sweets setup.

Flatpak apps reach the keyring through a portal. To pick gnome-keyring for them, create ~/.config/xdg-desktop-portal/sweets-portals.conf:

[preferred]
default=gtk
org.freedesktop.impl.portal.Screenshot=wlr
org.freedesktop.impl.portal.ScreenCast=wlr
org.freedesktop.impl.portal.Secret=gnome-keyring

On this page