Skip to content

Commit

Permalink
docs: xdg-desktop-portal>=1.15.0 doesn't work for some wayland users
Browse files Browse the repository at this point in the history
  • Loading branch information
reggermont committed Jan 29, 2024
1 parent 3d21e49 commit 2949ad4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/Sway and wlroots support.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Flameshot currently supports Sway and other wlroots based Wayland compositors th
## Basic steps
The following packages need to be installed: `xdg-desktop-portal xdg-desktop-portal-wlr grim`. Please ensure your distro packages these, or install them manually.

Some users are reporting versions of `xdg-desktop-portal` above 1.15.0 makes flameshot not working again. [Downgrade](https://wiki.archlinux.org/title/Downgrading_packages) to the `1.14.6` / `1.14.6-1` version and reboot (just exiting sway doesn't work) [(reference)](https://github.com/flameshot-org/flameshot/issues/2872#issuecomment-1215839730)

Ensure that environment variables are set properly. If your distro does not set them automatically, use a launch script to export `XDG_CURRENT_DESKTOP=sway` **before** Sway is launched.
```sh
#!/bin/bash
Expand All @@ -15,7 +17,8 @@ export XDG_SESSION_DESKTOP=sway
exec sway
```

You will also need to ensure that systemd/dbus is aware of these environment variables; this should be done **in your sway config** so that the DISPLAY and WAYLAND_DISPLAY variables are defined.
You will also need to ensure that systemd/dbus is aware of these environment variables; this should be done **in your sway config** so that the DIS
PLAY and WAYLAND_DISPLAY variables are defined.

(taken from [Sway wiki](https://github.com/swaywm/sway/wiki#gtk-applications-take-20-seconds-to-start)):
```sh
Expand Down

0 comments on commit 2949ad4

Please sign in to comment.