From da9b29a32199a28656e485f45b244476c3bef6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Sun, 26 Apr 2026 12:31:53 +0200 Subject: [PATCH] opentabletdriver: fix wrapping the GUI binary with GTK stuff Previously when removing the wrapper hook, nothing changed in the output, it had no effect. I'm not sure if it's required to wrap it for dotnet since it didn't cause any issues, but since it's a GTK app let's do it anyways. --- pkgs/by-name/op/opentabletdriver/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/op/opentabletdriver/package.nix b/pkgs/by-name/op/opentabletdriver/package.nix index cd86dfccd78f..b7a13d765b9b 100644 --- a/pkgs/by-name/op/opentabletdriver/package.nix +++ b/pkgs/by-name/op/opentabletdriver/package.nix @@ -91,6 +91,8 @@ buildDotnetModule (finalAttrs: { --replace-fail '/usr/bin/env rm' '${lib.getExe' coreutils "rm"}' ''; + dontWrapGApps = true; + postFixup = '' # Give a more "*nix" name to the binaries mv $out/bin/OpenTabletDriver.Console $out/bin/otd @@ -102,6 +104,9 @@ buildDotnetModule (finalAttrs: { # Generate udev rules from source mkdir -p $out/lib/udev/rules.d ./generate-rules.sh > $out/lib/udev/rules.d/70-opentabletdriver.rules + + wrapProgram $out/bin/otd-gui \ + "''${gappsWrapperArgs[@]}" ''; desktopItems = [