diff options
author | oxalica <oxalicc@pm.me> | 2021-11-14 00:56:14 +0800 |
---|---|---|
committer | oxalica <oxalicc@pm.me> | 2021-11-14 01:14:53 +0800 |
commit | fda144875f0cf47072969c4931523931302b866c (patch) | |
tree | 685d5c33e532d5d846b1b85063d054e3645fbe8f /pkgs/tools/misc/flameshot | |
parent | e29d818477aa67a4def398e2b510437ecfbd4704 (diff) |
flameshot: fix under KDE wayland
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.
Diffstat (limited to 'pkgs/tools/misc/flameshot')
-rw-r--r-- | pkgs/tools/misc/flameshot/default.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/tools/misc/flameshot/default.nix b/pkgs/tools/misc/flameshot/default.nix index 7605c92bf438b..401719b46f3b5 100644 --- a/pkgs/tools/misc/flameshot/default.nix +++ b/pkgs/tools/misc/flameshot/default.nix @@ -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"; |