~ubuntu-branches/ubuntu/lucid/apport/lucid

« back to all changes in this revision

Viewing changes to apport/ui.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2010-04-14 14:42:28 UTC
  • mfrom: (148.1.27)
  • Revision ID: package-import@ubuntu.com-20100414144228-2pozsl0xma2816ns
Tags: 1.13.3-0ubuntu1
* New upstream bug fix release:
  - data/general-hooks/parse_segv.py: suggest segv-in-kernel possibility.
  - ui.py: When running as root, only show system crash reports, to avoid
    restarting user programs as root. (LP: #445017)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# option) any later version.  See http://www.gnu.org/copyleft/gpl.html for
14
14
# the full text of the license.
15
15
 
16
 
__version__ = '1.13.2'
 
16
__version__ = '1.13.3'
17
17
 
18
18
import glob, sys, os.path, optparse, time, traceback, locale, gettext, re
19
19
import pwd, errno, urllib, zlib
164
164
        '''
165
165
        result = False
166
166
 
167
 
        for f in apport.fileutils.get_new_reports():
 
167
        if os.geteuid() == 0:
 
168
            reports = apport.fileutils.get_new_system_reports()
 
169
        else:
 
170
            reports = apport.fileutils.get_new_reports()
 
171
        for f in reports:
168
172
            self.run_crash(f)
169
173
            result = True
170
174