summary refs log tree commit diff
path: root/pkgs/applications/terminal-emulators/terminator
diff options
context:
space:
mode:
authorJoerie de Gram <j.de.gram@gmail.com>2021-10-17 13:46:57 +0200
committerJoerie de Gram <j.de.gram@gmail.com>2021-10-17 13:58:55 +0200
commit5bee472a9b76e594bc94b6bb37af06e37fffa3a4 (patch)
treedc9a4b55279abf51bb9018da012c764ee4be5f93 /pkgs/applications/terminal-emulators/terminator
parent50ff5c608a7e9c1ce4cf25177f0e32ee3a81722c (diff)
downloadnixpkgs-5bee472a9b76e594bc94b6bb37af06e37fffa3a4.tar
nixpkgs-5bee472a9b76e594bc94b6bb37af06e37fffa3a4.tar.gz
nixpkgs-5bee472a9b76e594bc94b6bb37af06e37fffa3a4.tar.bz2
nixpkgs-5bee472a9b76e594bc94b6bb37af06e37fffa3a4.tar.lz
nixpkgs-5bee472a9b76e594bc94b6bb37af06e37fffa3a4.tar.xz
nixpkgs-5bee472a9b76e594bc94b6bb37af06e37fffa3a4.tar.zst
nixpkgs-5bee472a9b76e594bc94b6bb37af06e37fffa3a4.zip
terminator: use `dontWrapGApps` to fix desktop icon
Terminator is currently wrapped twice, which makes the python hook use a
wrapped executable name to set argv[0]. As a result, Terminator can't be
matched to its desktop entry and fails to group correctly in e.g. the GNOME app
launcher. Ensuring we only wrap the executable once solves this.
Diffstat (limited to 'pkgs/applications/terminal-emulators/terminator')
-rw-r--r--pkgs/applications/terminal-emulators/terminator/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/terminal-emulators/terminator/default.nix b/pkgs/applications/terminal-emulators/terminator/default.nix
index e922a34423c..67c7196e24d 100644
--- a/pkgs/applications/terminal-emulators/terminator/default.nix
+++ b/pkgs/applications/terminal-emulators/terminator/default.nix
@@ -56,6 +56,12 @@ python3.pkgs.buildPythonApplication rec {
 
   doCheck = false;
 
+  dontWrapGApps = true;
+
+  preFixup = ''
+    makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
+  '';
+
   meta = with lib; {
     description = "Terminal emulator with support for tiling and tabs";
     longDescription = ''