#1154453 nfoview: opening a file from the command line fails

#1154453#5
Date:
2026-11-19 12:15:43 UTC
From:
To:
Dear maintainer,

When doing something as trivial as

   $ nfoview ./path/to/file.nfo

I was expecting to have the program display the nfo file,
but instead all I got was a blank window.

It seems your launcher /usr/bin/nfoview strips the executable name
from sys.argv before passing the arguments to nfoview.main().
However, nfoview.main() passes these arguments directly to
Gtk.Application.run(), which expects the complete argument vector

Proposed fix:
--- a/debian/launcher/nfoview
+++ b/debian/launcher/nfoview
@@ -4,4 +4,4 @@ import sys
  sys.path.insert(0, '/usr/share/nfoview')

  import nfoview
-nfoview.main(sys.argv[1:])
+nfoview.main(sys.argv)


Cheers,
Sébastien

#1154453#8
Date:
2026-11-19 14:09:31 UTC
From:
To:
Hello,

Bug #1154453 in nfoview reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/jcfp/nfoview/-/commit/509b165fbac6b5936b8b6f67a4bc8396efd16596
------------------------------------------------------------------------
d/launcher: pass all arguments along, including the first one, required by Gtk.Application.run() now. Patch courtesy of twolife@d.o. (Closes: #1154453)
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1154453

#1154453#15
Date:
2026-11-19 14:46:31 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
nfoview, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1154453@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jeroen Ploemen <jcfp@debian.org> (supplier of updated nfoview package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 19 Nov 2026 14:21:34 +0000
Source: nfoview
Built-For-Profiles: noudeb
Architecture: source
Version: 2.2-2
Distribution: unstable
Urgency: medium
Maintainer: Jeroen Ploemen <jcfp@debian.org>
Changed-By: Jeroen Ploemen <jcfp@debian.org>
Closes: 1154453
Changes:
 nfoview (2.2-2) unstable; urgency=medium
 .
   * d/launcher: pass all arguments along, including the first one,
     required by Gtk.Application.run() now. Patch courtesy of
     twolife@d.o. (Closes: #1154453)
Checksums-Sha1:
 4f587c29884e7a48b902baad0f351bed134ab717 2101 nfoview_2.2-2.dsc
 d13c8bd094ef51ce2c4c2a445f871aa019537a49 9192 nfoview_2.2-2.debian.tar.xz
 26f63918018a683a19dc9f57d21fec78ed2df6e7 13467 nfoview_2.2-2_source.buildinfo
Checksums-Sha256:
 2bd93b468af7ea906f56810c76586145108716313f8cbed97f591f42829efa10 2101 nfoview_2.2-2.dsc
 d80bffb7e9594ff81e81372df6d681ea32b633928f42560ff360b191383e4b98 9192 nfoview_2.2-2.debian.tar.xz
 f080ec9f40f92c5e269b314b274fe04ef28fd1899a23dec48495e7523a15e6bb 13467 nfoview_2.2-2_source.buildinfo
Files:
 2259e676525cb6762e28978ca9377dc7 2101 utils - nfoview_2.2-2.dsc
 ad21e13d68b61d4bab5b6a6e70a9c6c2 9192 utils - nfoview_2.2-2.debian.tar.xz
 9359b2421c09a5b4947e4b80ed2433fc 13467 utils - nfoview_2.2-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEd8lhnEnWos3N8v+qQoMEoXSNzHoFAmr/BfsACgkQQoMEoXSN
zHoZMw//RXmFqkJ7yULJiSQvWodbNg31OD0OfKsGCwLFrRQfa9G78o9IWp5yNFcI
WaIn6S8dYiAy9BMT6Ft1uWHKDNqkPUwI347H+PzotV0CTus/avC5a15Wrgtrxc1v
N95AdFgawi4VSaYpjVANLzF8CL3fCmNdZ1iDQ9PNvVxei+Bh3aH/WCsjJNTuP97j
LUv7prkCDAothlhyYqF2gBrZyFVTjCNlNJinMh6hlV1+XUJtub26r9h9RX9MTcIw
UTKzQ3EKSJEj4Ca0xEWO2cRfKg3WtpkYJouwctGdcnZH31rR/CzWZiZPMxTeivRh
97Ril/Dv3T+ScD8FYk/zsAS9SPAdnFJq+lODSiEfbHdlviZ1h26mZQrE3hP2aSTH
LicbMNJvnyIvc20lkaS1lcF4l6TdN7b3ReePzBFJNDc+LoNFLkKWPkrO5K2HDyDs
53dpQ5HCowg1w5CxZmgfCq0S0TN4wDyNM2miFas/QW/GVFqURKSTtqNP2EZaGHb0
1Xtgyf1I63olr33GbLA+oNuF9A9Wxder0//4RmbX1oq2Q22VEZkdLmSFie16w5uJ
dWqzhQlG0nxQH+au42H+PThflDt+y7ybPHIOQtRRgeJc2FRYsl66MDDvexPzxhMS
Gd8ctBEw9SHjT48l3foLgLGzb8GQE6Vvnf/NEeYK1QvybkwBa7I=
=M6Bh
-----END PGP SIGNATURE-----