mirror of
https://github.com/gryf/wicd.git
synced 2026-02-24 03:05:47 +01:00
Merged mainline. This will require one more change to the NEWS file
to handle conflicts.
This commit is contained in:
57
NEWS
57
NEWS
@@ -1,34 +1,25 @@
|
|||||||
Wicd 1.6.x Branch
|
MAIN CHANGES:
|
||||||
|
- New and improved tray icon and gui images. (Thanks to Martin Sagastume).
|
||||||
Major Changes:
|
- Re-organized network list in the GUI to be easier to navigate.
|
||||||
- Improved tray icon and gui images (thanks to Martin Sagastume)
|
- Added new experimental ioctl backend, which is more CPU friendly than the previous one.
|
||||||
- Reorganized network list in the gui for easier navigation
|
- Added a curses client (Thanks to Andrew Psaltis).
|
||||||
- New experimental ioctl backend, which is more cpu-friendly than the
|
- Added a right-click connection menu to the tray icon.
|
||||||
previous one
|
- Add options to specify a dns domain and search domain for static networks.
|
||||||
- Added a curses client (thanks to Andrew Psaltis)
|
- Re-worked Preferences menu to be more in line with GNOME standards.
|
||||||
- Added a right-click connection menu to the tray icon
|
- Support for global scripts.
|
||||||
- Added options to specify a dns domain and search domain for static networks
|
- Make it possible to have optional entries in encryption templates.
|
||||||
- Reworked the Preferences menu to be more in line with GNOME standards
|
|
||||||
- Added support for global scripts
|
|
||||||
- Made it possible to have optional entries in encryption templates
|
|
||||||
|
|
||||||
Minor Changes and Other Enchancements:
|
|
||||||
- Better autoconnection behavior
|
|
||||||
- Tray/GUI will survive the daemon being killed
|
|
||||||
- Reasons for connection failures will now bubble back to the GUI
|
|
||||||
- Add/Remove wired profile system is now more user-friendly
|
|
||||||
- Support for using resolvconf instead of directly editing /etc/resolv.conf
|
|
||||||
- Wicd won't blindly kill dhcp clients / wpa_supplicant any more
|
|
||||||
- Added an option to automatically switch from a wireless network to a wired
|
|
||||||
one as soon as a cable is plugged in
|
|
||||||
- Moved scanning to its own thread, which makes GUI and daemon more responsive
|
|
||||||
during scans
|
|
||||||
- Made it possible to specify macros in script entries
|
|
||||||
- The gui will now display the encryption entry dialog if you attempt to
|
|
||||||
connect to an encrypted network without entering a password
|
|
||||||
- Static gateway entry is now optional
|
|
||||||
- Passwords with leading or trailing whitespace are now stored properly
|
|
||||||
- Many init/config script, man page, and setup.py fixes/updates, including
|
|
||||||
better autodetection of file placement with regard to sleep hooks and
|
|
||||||
kde autostart files (thanks to Robby Workman)
|
|
||||||
|
|
||||||
|
SMALL CHANGES:
|
||||||
|
- Better autoconnection behavior.
|
||||||
|
- Tray/GUI will survive the daemon going down.
|
||||||
|
- Reasons for connection failures will now bubble back to the GUI.
|
||||||
|
- Add/Remove wired profile system is now more user-friendly.
|
||||||
|
- Support for using resolvconf instead of directly editing /etc/resolv.conf.
|
||||||
|
- Wicd won't blindly kill dhcp clients / wpa_supplicant anymore.
|
||||||
|
- Added an option to automatically switch from a wireless network to a wired one as soon as a cable is plugged in.
|
||||||
|
- Move scanning to its own thread, which makes GUI and daemon more responsive during scans.
|
||||||
|
- Make it possible to specify macros in script entries.
|
||||||
|
- GUI will now display the encryption entry dialog if you attempt to connect to an encrypted network without entering a password.
|
||||||
|
- Static gateway entry is now optional.
|
||||||
|
- Passwords with leading or trailing whitespace are now stored properly.
|
||||||
|
- Many init/config script, man page, and setup.py fixes/updates (Thanks to Robby Workman).
|
||||||
|
|||||||
16
setup.py
16
setup.py
@@ -24,7 +24,7 @@ import subprocess
|
|||||||
|
|
||||||
# Be sure to keep this updated!
|
# Be sure to keep this updated!
|
||||||
# VERSIONNUMBER
|
# VERSIONNUMBER
|
||||||
VERSION_NUM = '1.6.0a2'
|
VERSION_NUM = '1.6.0a3'
|
||||||
# REVISION_NUM is automatically updated
|
# REVISION_NUM is automatically updated
|
||||||
REVISION_NUM = 'unknown'
|
REVISION_NUM = 'unknown'
|
||||||
CURSES_REVNO = 'uimod'
|
CURSES_REVNO = 'uimod'
|
||||||
@@ -33,7 +33,7 @@ CURSES_REVNO = 'uimod'
|
|||||||
os.chdir(os.path.abspath(os.path.split(__file__)[0]))
|
os.chdir(os.path.abspath(os.path.split(__file__)[0]))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if os.path.exists('.bzr') and os.system('bzr') == 0:
|
if os.path.exists('.bzr') and os.system('bzr > /dev/null 2>&1') == 0:
|
||||||
try:
|
try:
|
||||||
os.system('bzr version-info --python > vcsinfo.py')
|
os.system('bzr version-info --python > vcsinfo.py')
|
||||||
except:
|
except:
|
||||||
@@ -463,14 +463,10 @@ try:
|
|||||||
print 'Using pid path', os.path.basename(wpath.pidfile)
|
print 'Using pid path', os.path.basename(wpath.pidfile)
|
||||||
print 'Language support for',
|
print 'Language support for',
|
||||||
for language in os.listdir('translations/'):
|
for language in os.listdir('translations/'):
|
||||||
if not language.startswith('.'):
|
print language,
|
||||||
codes = language.split('_')
|
data.append((wpath.translations + language + '/LC_MESSAGES/',
|
||||||
short_language = language
|
['translations/' + language + '/LC_MESSAGES/wicd.mo']))
|
||||||
if codes[0].lower() == codes[1].lower():
|
print
|
||||||
short_language = codes[0].lower()
|
|
||||||
print short_language,
|
|
||||||
data.append((wpath.translations + short_language + '/LC_MESSAGES/',
|
|
||||||
['translations/' + language + '/LC_MESSAGES/wicd.mo']))
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print str(e)
|
print str(e)
|
||||||
print '''Error setting up data array. This is normal if
|
print '''Error setting up data array. This is normal if
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ from wicd import dbusmanager
|
|||||||
|
|
||||||
import dbus
|
import dbus
|
||||||
import time
|
import time
|
||||||
import gobject
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if getattr(dbus, 'version', (0, 0, 0)) < (0, 80, 0):
|
if getattr(dbus, 'version', (0, 0, 0)) < (0, 80, 0):
|
||||||
|
|||||||
@@ -106,7 +106,8 @@ class ConfigManager(RawConfigParser):
|
|||||||
|
|
||||||
# Try to intelligently handle the type of the return value.
|
# Try to intelligently handle the type of the return value.
|
||||||
try:
|
try:
|
||||||
ret = int(ret)
|
if not ret.startswith('0') or len(ret) == 1:
|
||||||
|
ret = int(ret)
|
||||||
except (ValueError, TypeError):
|
except (ValueError, TypeError):
|
||||||
ret = Noneify(ret)
|
ret = Noneify(ret)
|
||||||
# This is a workaround for a python-dbus issue on 64-bit systems.
|
# This is a workaround for a python-dbus issue on 64-bit systems.
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ A module for managing wicd's dbus interfaces.
|
|||||||
#
|
#
|
||||||
|
|
||||||
import dbus
|
import dbus
|
||||||
from dbus import DBusException
|
|
||||||
if getattr(dbus, "version", (0, 0, 0)) < (0, 80, 0):
|
if getattr(dbus, "version", (0, 0, 0)) < (0, 80, 0):
|
||||||
import dbus.glib
|
import dbus.glib
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ import pango
|
|||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
import gtk.glade
|
||||||
from dbus import DBusException
|
from dbus import DBusException
|
||||||
from dbus import version as dbus_version
|
|
||||||
|
|
||||||
from wicd import misc
|
from wicd import misc
|
||||||
from wicd import wpath
|
from wicd import wpath
|
||||||
@@ -41,7 +40,7 @@ from wicd import netentry
|
|||||||
from wicd.misc import noneToString
|
from wicd.misc import noneToString
|
||||||
from wicd.netentry import WiredNetworkEntry, WirelessNetworkEntry
|
from wicd.netentry import WiredNetworkEntry, WirelessNetworkEntry
|
||||||
from wicd.prefs import PreferencesDialog
|
from wicd.prefs import PreferencesDialog
|
||||||
from wicd.guiutil import error, GreyLabel, LabelEntry, SmallLabel
|
from wicd.guiutil import error, LabelEntry
|
||||||
from wicd.translations import language
|
from wicd.translations import language
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
@@ -709,7 +708,7 @@ class appGui(object):
|
|||||||
try:
|
try:
|
||||||
daemon.WriteWindowSize(width, height, "main")
|
daemon.WriteWindowSize(width, height, "main")
|
||||||
daemon.SetGUIOpen(False)
|
daemon.SetGUIOpen(False)
|
||||||
except dbusmanager.DBusException:
|
except DBusException:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if self.standalone:
|
if self.standalone:
|
||||||
|
|||||||
@@ -25,8 +25,6 @@ import sys
|
|||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import wicd.wpath as wpath
|
|
||||||
|
|
||||||
class SizeError(IOError):
|
class SizeError(IOError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ when appropriate.
|
|||||||
|
|
||||||
import gobject
|
import gobject
|
||||||
import time
|
import time
|
||||||
import sys
|
|
||||||
|
|
||||||
from dbus import DBusException
|
from dbus import DBusException
|
||||||
|
|
||||||
@@ -53,7 +52,7 @@ def diewithdbus(func):
|
|||||||
ret = func(self, *__args, **__kargs)
|
ret = func(self, *__args, **__kargs)
|
||||||
self.__lost_dbus_count = 0
|
self.__lost_dbus_count = 0
|
||||||
return ret
|
return ret
|
||||||
except dbusmanager.DBusException, e:
|
except DBusException, e:
|
||||||
print "Caught exception %s" % str(e)
|
print "Caught exception %s" % str(e)
|
||||||
if not hasattr(self, "__lost_dbus_count"):
|
if not hasattr(self, "__lost_dbus_count"):
|
||||||
self.__lost_dbus_count = 0
|
self.__lost_dbus_count = 0
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import misc
|
|||||||
import wpath
|
import wpath
|
||||||
import dbusmanager
|
import dbusmanager
|
||||||
from misc import noneToString, stringToNone, noneToBlankString, to_bool
|
from misc import noneToString, stringToNone, noneToBlankString, to_bool
|
||||||
from guiutil import error, SmallLabel, LabelEntry, GreyLabel, LeftAlignedLabel, string_input
|
from guiutil import error, LabelEntry, GreyLabel, LeftAlignedLabel, string_input
|
||||||
|
|
||||||
from translations import language
|
from translations import language
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ handles recieving/sendings the settings from/to the daemon.
|
|||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
import gobject
|
import gobject
|
||||||
import pango
|
#import pango
|
||||||
import os
|
import os
|
||||||
import gtk.glade
|
import gtk.glade
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ import gobject
|
|||||||
import getopt
|
import getopt
|
||||||
import os
|
import os
|
||||||
import pango
|
import pango
|
||||||
import time
|
|
||||||
import atexit
|
import atexit
|
||||||
from dbus import DBusException
|
from dbus import DBusException
|
||||||
|
|
||||||
|
|||||||
0
wicd/wicd-daemon.py
Executable file → Normal file
0
wicd/wicd-daemon.py
Executable file → Normal file
@@ -112,10 +112,9 @@ def GetWirelessInterfaces():
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
dev_dir = '/sys/class/net/'
|
dev_dir = '/sys/class/net/'
|
||||||
ifnames = []
|
ifnames = [iface for iface in os.listdir(dev_dir)
|
||||||
|
if os.path.isdir(dev_dir + iface) and
|
||||||
ifnames = [iface for iface in os.listdir(dev_dir) if os.path.isdir(dev_dir + iface)
|
'wireless' in os.listdir(dev_dir + iface)]
|
||||||
and 'wireless' in os.listdir(dev_dir + iface)]
|
|
||||||
|
|
||||||
return ifnames
|
return ifnames
|
||||||
|
|
||||||
@@ -134,10 +133,7 @@ def IsValidWpaSuppDriver(driver):
|
|||||||
""" Returns True if given string is a valid wpa_supplicant driver. """
|
""" Returns True if given string is a valid wpa_supplicant driver. """
|
||||||
output = misc.Run(["wpa_supplicant", "-D%s" % driver, "-iolan19",
|
output = misc.Run(["wpa_supplicant", "-D%s" % driver, "-iolan19",
|
||||||
"-c/etc/abcd%sdefzz.zconfz" % random.randint(1, 1000)])
|
"-c/etc/abcd%sdefzz.zconfz" % random.randint(1, 1000)])
|
||||||
if re.match("Unsupported driver", output):
|
return not "Unsupported driver" in output
|
||||||
return False
|
|
||||||
else:
|
|
||||||
return True
|
|
||||||
|
|
||||||
def neediface(default_response):
|
def neediface(default_response):
|
||||||
""" A decorator for only running a method if self.iface is defined.
|
""" A decorator for only running a method if self.iface is defined.
|
||||||
|
|||||||
Reference in New Issue
Block a user