Source: nfoview
Version: 2.2-1
Severity: normal
Tags: patch


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

Reply via email to