~gandelman-a/software-properties/lp829109

« back to all changes in this revision

Viewing changes to software-properties-gtk

  • Committer: Michael Vogt
  • Date: 2011-07-18 09:26:55 UTC
  • mfrom: (606.4.6 updates-redesign)
  • mto: This revision was merged to the branch mainline in revision 687.
  • Revision ID: michael.vogt@ubuntu.com-20110718092655-yl78x0yejgv5oyxl
merged from lp:~ilidrissi.amine/software-properties/updates-redesign and apply some cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
                    help="Use data files (UI) from the given directory")
78
78
  
79
79
  (options, args) = parser.parse_args()
80
 
  # Check for root permissions
81
 
  if os.geteuid() != 0:
82
 
    dialog = Gtk.MessageDialog(None, 0, Gtk.MessageType.ERROR, Gtk.ButtonsType.CLOSE, 
83
 
                               _("You need to be root to run this program") )
84
 
    dialog.set_default_response(Gtk.ResponseType.CLOSE)
85
 
    dialog.run()
86
 
    dialog.destroy()
87
 
    sys.exit(1)
88
80
                     
89
81
  try:
90
82
      locale.setlocale(locale.LC_ALL, '')