From 423fc131ada71826bf9af1f1b2e3b5d570d835a6 Mon Sep 17 00:00:00 2001 From: benaryorg Date: Sun, 26 Apr 2026 04:13:52 +0000 Subject: [PATCH] gscreenshot: meta.mainProgram This will: - change the output hash (thus cause rebuilds) - not change behaviour for anything using `lib.getExe` - silence warnings for `lib.getExe` - do the right thing in most circumstances There are two binaries; gscreenshot and gscreenshot-cli. The latter [will skip showing the GUI by default](https://github.com/thenaterhood/gscreenshot/blob/e498082bc14c038858acf6517dbfd7dc9706b31e/src/gscreenshot/frontend/cli/args.py#L13-L14) (which can be supressed by arguments). So basically this will codify the de-facto state. Technically when using the `-cli` variant all GUI features are available using `--gui`, yet the GUI version cannot replicate the CLI version verbatim, however passing as much as `--filename` with an argument is enough to get virtually the same results. CLI users who wish to make a screenshot with the default filename convention right away should use `lib.getExe' _ "gscreenshot-cli"` or provide `--filename` with the argument `.`. Signed-off-by: benaryorg --- pkgs/by-name/gs/gscreenshot/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/gs/gscreenshot/package.nix b/pkgs/by-name/gs/gscreenshot/package.nix index 044b16161003..aa5eb36c3410 100644 --- a/pkgs/by-name/gs/gscreenshot/package.nix +++ b/pkgs/by-name/gs/gscreenshot/package.nix @@ -90,6 +90,7 @@ python3Packages.buildPythonApplication (finalAttrs: { homepage = "https://github.com/thenaterhood/gscreenshot"; license = lib.licenses.gpl2Only; platforms = lib.platforms.linux; + mainProgram = "gscreenshot"; maintainers = [ lib.maintainers.davisrichard437 ]; }; })