Merge pull request #145777 from oxalica/fix/flameshot-wayland

flameshot: fix under KDE wayland
This commit is contained in:
Bobby Rong 2021-12-17 15:18:47 +08:00 committed by GitHub
commit 73de24ff8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,9 @@ mkDerivation rec {
};
patches = [
# Support for USE_LAUNCHER_ABSOLUTE_PATH.
# Use absolute install path for `Exec=` in the desktop file.
# This is required since KWin relies on absolute paths in `Exec=` to find a process'
# corresponding desktop file and check if it's allowed to take screenshot.
# Should be removed when the next release comes out.
(fetchpatch {
url = "https://github.com/flameshot-org/flameshot/commit/1031980ed1e62d24d7f719998b7951d48801e3fa.patch";
@ -44,9 +46,6 @@ mkDerivation rec {
nativeBuildInputs = [ cmake qttools qtsvg ];
buildInputs = [ qtbase ];
# Use relative path for the .desktop file.
cmakeFlags = [ "-DUSE_LAUNCHER_ABSOLUTE_PATH=OFF" ];
meta = with lib; {
description = "Powerful yet simple to use screenshot software";
homepage = "https://github.com/flameshot-org/flameshot";