-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add grim-based wayland universal screenshot adapter (#3018)
* Add grim-based wayland universal screenshot adapter In the past, flameshot used a special and superfluous method to call the wayland screenshot component - dbus protocol communication. Although this method is supported by a large number of distributions, it does not take into account the actual situation of wayland (including WM custom desktop environment users). Now, we can enable the wayland universal screenshot adapter with the help of grim, just add the following compilation flags in cmake: ``` -DUSE_WAYLAND_GRIM=true ``` In addition, the patch also adds HYPRLAND type and OTHER type support * grim outputs to standard streams instead of files * Automatically enable wayland clipboard support when USE_WAYLAND_GRIM is enabled * Cancel USE_WAYLAND_GRIM Activate USE_WAYLAND_CLIPBOARD by default Due to the dependency problem of USE_WAYLAND_CLIPBOARD, cancel USE_WAYLAND_GRIM to activate USE_WAYLAND_CLIPBOARD by default, Add a warning prompt to activate USE_WAYLAND_GRIM when USE_WAYLAND_CLIPBOARD is activated * perform formatting * modify cmake message The grim adapter cannot be used in gnome and similar environments, modify the cmake message to express it * remove generic screenshot adapter for gnome Generic screenshot adapter is only supported on compositors that support wlroots * Update format
- Loading branch information
1 parent
f7e41f4
commit 3ededae
Showing
5 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ class DesktopInfo | |
KDE, | ||
OTHER, | ||
QTILE, | ||
SWAY | ||
SWAY, | ||
HYPRLAND | ||
}; | ||
|
||
bool waylandDetected(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters