#!/usr/bin/python

import os, sys
import galternatives
import gettext
from galternatives.common import PACKAGE

_ = gettext.gettext

gettext.bindtextdomain (PACKAGE)
gettext.textdomain (PACKAGE)

if os.getuid ():
    sys.exit (os.system ('/usr/bin/gksu -t "%s" -m "%s" -u root %s' % 
                         (_('Running Alternatives Configurator...'),
                          _('<b>I need your root password to run\n'
                            'the Alternatives Configurator.</b>'),
                          sys.argv[0])))
    
ga = galternatives.GAlternatives ()
try:
    if sys.argv[1] == '--debug':
        ga.DEBUG = True
except IndexError:
    pass
ga.mainloop ()
