nixpkgs/pkgs/applications/networking/p2p/qbittorrent
Klemens Nanni 670cb2103a qbittorrent: Wrap once, python is optional
qbittorrent is wrapped twice which must be generally be avoided as it
breaks the program's basename, e.g. `argv[0]` ends up with
".qbittorrent-wrapped" rather than "qbittorrent" as basename.

This becomes relevant when matching for (exact) program names: pgrep(1),
earlyoom(1)'s `--avoid`, etc.

Furthermore, Python is only required by the (default enabled) tracker
search feature.

Since the "qbittorrent" ELF executable is wrapped automatically as a Qt
app, replace the unconditional `postInstall` hook with an optional
addition to `makeWrapperArgs` with is used by `wrapQtApp` eventually.

This merges two wrappers and thus fixes the basename.
2022-05-30 01:31:03 +02:00
..
default.nix qbittorrent: Wrap once, python is optional 2022-05-30 01:31:03 +02:00