]> git.pld-linux.org Git - packages/apport.git/commitdiff
- try $PAGER, less instead of debianish sensible-pager
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 24 Apr 2008 10:06:32 +0000 (10:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apport-pager.patch -> 1.1

apport-pager.patch [new file with mode: 0644]

diff --git a/apport-pager.patch b/apport-pager.patch
new file mode 100644 (file)
index 0000000..bcf76ab
--- /dev/null
@@ -0,0 +1,15 @@
+--- apport-0.108/cli/apport-cli~       2008-04-24 13:02:06.557911675 +0300
++++ apport-0.108/cli/apport-cli        2008-04-24 13:02:08.287912036 +0300
+@@ -232,7 +232,11 @@
+                 return 'reduced'
+             if response == view:
+                 try:
+-                    subprocess.Popen(["/usr/bin/sensible-pager"],
++                    if os.environ.has_key('PAGER'):
++                        pager = os.environ.get('PAGER')
++                    else:
++                        pager = '/usr/bin/less'
++                    subprocess.Popen([pager],
+                             stdin=subprocess.PIPE,
+                             close_fds=True).communicate(details)
+                 except IOError, e:
This page took 0.088188 seconds and 4 git commands to generate.