You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added river support
This attempts to generalize wlroots compositors by checking against the
proper desktop name instead of only sway. This fixes the problem of only
supporting sway. Any additional desktop will just have to be added to
the source to check for the correct string.
* fix: riverwm floating docs
* docs: removed no longer relevant comment
* fix: clang-format length
* refactor(desktopinfo): clang-format -i
---------
Co-authored-by: cvoges12 <[email protected]>
Co-authored-by: cvoges12 <[email protected]>
Co-authored-by: midirhee12 <[email protected]>
Copy file name to clipboardExpand all lines: docs/Sway and wlroots support.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Flameshot currently supports Sway and other wlroots based Wayland compositors th
4
4
## Basic steps
5
5
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.
6
6
7
-
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.
7
+
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`or `XDG_CURRENT_DESKTOP=river`**before** Sway or River is launched.
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.
18
+
or
19
+
20
+
21
+
```sh
22
+
#!/bin/bash
23
+
export SDL_VIDEODRIVER=wayland
24
+
export _JAVA_AWT_WM_NONREPARENTING=1
25
+
export QT_QPA_PLATFORM=wayland
26
+
export XDG_CURRENT_DESKTOP=river
27
+
export XDG_SESSION_DESKTOP=river
28
+
exec river
29
+
```
30
+
31
+
You will also need to ensure that systemd/dbus is aware of these environment variables; this should be done **in your sway or river config** so that the DISPLAY and WAYLAND_DISPLAY variables are defined.
19
32
20
33
(taken from [Sway wiki](https://github.com/swaywm/sway/wiki#gtk-applications-take-20-seconds-to-start)):
21
34
```sh
@@ -29,6 +42,13 @@ To ensure that Flameshot is correctly positioned on multiple outputs (monitors)
Otherwise, flameshot will not take all of the screen and tiles its window instead like a normal application. Note however, that some clipboard stuff is broken so it might be good to save your screenshot as a file while having it copied to a clipboard in case if clipboard does some weird stuff like not pasting the overall screenshot.
32
52
33
53
34
54
Starting from 0.17.0 xdg-desktop-portal requires a configuration file (e.g. in ~/.config/xdg-desktop-portal/sway-portals.conf):
@@ -68,7 +88,7 @@ and add the following on your config such as in `$HOME/.config/river/init`
68
88
riverctl float-filter-add "flameshot"
69
89
```
70
90
71
-
Otherwise, Flameshot will not take all of the screen and tiles its window instead like a normal application. Note however, that some clipboard stuff is broken so it might be good to save your screenshot as a file while having it copied to a clipboard in case if clipboard does some weird stuff like not pasting the overall screenshot.
91
+
Otherwise, Flameshot will not take all of the screen and tiles its window instead like a normal application.
72
92
73
93
#### For more information, please refer to https://github.com/emersion/xdg-desktop-portal-wlr/wiki/%22It-doesn't-work%22-Troubleshooting-Checklist
0 commit comments