mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Removing GUI related files.
This commit is contained in:
@@ -1211,7 +1211,6 @@ def main():
|
||||
# This is a wrapper around a function that calls another a function that
|
||||
# is a wrapper around a infinite loop. Fun.
|
||||
urwid.set_encoding('utf8')
|
||||
|
||||
ui.run_wrapper(run)
|
||||
|
||||
|
||||
@@ -1276,21 +1275,20 @@ setup_dbus()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
#try:
|
||||
# parser = OptionParser(version="wicd-curses-%s (using wicd %s)" %
|
||||
# (CURSES_REV, daemon.Hello()),
|
||||
# prog="wicd-curses")
|
||||
#except Exception as e:
|
||||
# if "DBus.Error.AccessDenied" in e.get_dbus_name():
|
||||
# print(_('ERROR: wicd-curses was denied access to the wicd daemon: '
|
||||
# 'please check that your user is in the "$A" group.')
|
||||
# .replace('$A', '\033[1;34m' + wpath.wicd_group + '\033[0m'))
|
||||
# sys.exit(1)
|
||||
# else:
|
||||
# raise
|
||||
try:
|
||||
parser = OptionParser(version="wicd-curses-%s (using wicd %s)" %
|
||||
(CURSES_REV, daemon.Hello()),
|
||||
prog="wicd-curses")
|
||||
except Exception as e:
|
||||
if "DBus.Error.AccessDenied" in e.get_dbus_name():
|
||||
print(_('ERROR: wicd-curses was denied access to the wicd daemon: '
|
||||
'please check that your user is in the "$A" group.')
|
||||
.replace('$A', '\033[1;34m' + wpath.wicd_group + '\033[0m'))
|
||||
sys.exit(1)
|
||||
else:
|
||||
raise
|
||||
# parser.add_option("-d", "--debug", action="store_true", dest='debug',
|
||||
# help="enable logging of wicd-curses (currently does nothing)")
|
||||
|
||||
parser = OptionParser(prog="wicd-curses")
|
||||
(options, args) = parser.parse_args()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user