1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-06 13:54:17 +01:00

experimental branch:

- Actually destroy the network entry objects that are supposed to get destroied
- Improve GUI behavior when initially opened.
- Use the python -O flag when launching the daemon/GUI.
- Favor gksudo over gksu.
- Remove broken interface enable/disable options.
This commit is contained in:
imdano
2008-10-11 12:36:49 +00:00
parent 9ee8bc1875
commit 20b4a61f30
6 changed files with 35 additions and 77 deletions

View File

@@ -22,7 +22,7 @@ import locale
import gettext
import sys
from subprocess import Popen, STDOUT, PIPE, call
import commands
from commands import getoutput
# wicd imports
import wpath
@@ -337,7 +337,7 @@ def detect_desktop_environment():
desktop_environment = 'gnome'
else:
try:
info = commands.getoutput('xprop -root _DT_SAVE_MODE')
info = getoutput('xprop -root _DT_SAVE_MODE')
if ' = "xfce4"' in info:
desktop_environment = 'xfce'
except (OSError, RuntimeError):
@@ -356,7 +356,7 @@ def choose_sudo_prog():
else:
paths = []
for p in env_path:
paths.extend([p + '/gksu', p + '/ktsuss'])
paths.extend([p + '/gksudo', p + "/gksu", p + '/ktsuss'])
for path in paths:
if os.access(path, os.F_OK):
return path
@@ -489,6 +489,7 @@ def get_language_list_gui():
language['aborted'] = _('Connection Cancelled')
language['bad_pass'] = _('Connection Failed: Bad password')
language['done'] = _('Done connecting...')
language['scanning'] = _('Scanning')
return language