1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +01:00
Commit Graph

49 Commits

Author SHA1 Message Date
imdano
ef9b5cc7f3 Added distro-specific init scripts based on those used by NM (these are very experimental and likely broken in many cases).
Updated setup.py to pick which initscript to install based on the distro detected.
Updated MANIFEST.in to make sure launchdaemon.sh is included in the sdist build.
Fixed a bunch of crash bugs in tool detection system when tools are detected.
Made tool detection work correctly when "which" returns output if no match is found (as opposed to no output).  Eventually we might want to hardcode possible paths instead of using which at all...
Fixed some message formatting in the daemon.
Added some docstrings.
Added a pidfile system for increased initscript compatibility (sort of, it's somewhat incomplete).
2008-03-24 00:03:35 +00:00
imdano
c055ea0d36 Added support in the preferences window for specifying which dhcp client, link detection tool, and route flushing tool to use. It can also be left up to wicd to decide automatically.
Made a few logic optimizations.
2008-03-21 17:07:47 +00:00
imdano
cff1336d32 Improved automatic reconnection behavior.
Improved debug mode behavior.
Improved the way networking.py interfaces passes attributes on to wnettools.py interfaces.
Fixed crash in __printReturn when a parameter to return wasn't of type 'str'.
2008-03-17 07:50:51 +00:00
imdano
a7c22b9724 Improved GUI opening performance so there is less delay between clicking the icon and the gui actually appearing.
Made network entry list inactive while refreshing networks.
Made debugging output less spammy and more helpful (still incomplete).
2008-03-13 10:16:03 +00:00
imdano
0653f3f40b Refactored networking.py to be more modular.
Added docstrings to wnettools.py
Fixed wired autoconnect bug due to missing parenthesis on a method call.
Moved connection monitoring code out of daemon.py and into monitor.py, which is run as a separate, child process of daemon.py, to reduce delays in dbus reponse time while connection status and autoreconnect code is running.
Added full support for running the gui without the tray icon using the --no-tray option.
Some minor changes to code to be more readable/efficient/pythonic.
2008-03-09 22:09:22 +00:00
imdano
cb88439499 Made a bunch of small logic improvements.
Fixed some remaining bugs from the gui.py refactoring.
2008-03-04 20:39:53 +00:00
imdano
a2dedaaa03 Added support for putting interfaces up/down through the gui. 2008-03-04 14:06:04 +00:00
imdano
7de302fa1c Renamed a bunch of variables in gui.py to comply to python conventions.
Fixed a few small bugs due to misnamed variables in gui.py and networking.py
2008-03-04 11:55:34 +00:00
imdano
8289e44d86 Refactored the NetworkEntry/PrettyNetworkEntry classes in order to fix a memory leak. PrettyNetwork entry classes are now merged with NetworkEntry classes. There is now a separate AdvancedSettingsDialog to handle the advanced settings for each network entry.
Fixed last-used wired autoconnect support, which had gotten removed.
Removed a debugging string from networking.py
2008-03-03 22:42:29 +00:00
imdano
bcb46c1f12 Improved the authentication validation code. Instead of sleeping for an abitrary amount of time, then checking if authentication succeeded, it now repeatedly checks for a longer set amount of time. This way it is less likely to fail because it didn't wait long enough, but will usually finish faster. 2008-03-01 00:59:52 +00:00
imdano
3986ddd4fb Fixed crash bug in script configuration dialog when a network doesn't have script options written in the config file yet.
Refactored networking.py to not have to create a new wnettools interface every time a method gets called.  Now it reuses the same one and makes changes to the iface name/driver as needed.
Refactored a few methods in wnettools.py to be organized more logically and reduce external program calls.
In experimental branch, added a few methods to networking/wnettools that can be used for enabling/disabling interfaces, as well as unloading/loading the driver associated with an interface.
Added a check for mii-tool/ethtool that gets run when wicd starts, so it can decide which to use to check for a wired connection.
Added a check for ip, to decide how to flush the routing tables.
Rewrote some of the DHCP client checking code.
Added a method (that's currently unused) to release a dhcp lease for each of the supported clients.
2008-02-29 14:16:21 +00:00
imdano
44fa2ac718 Fixed a bug that prevented unsetting the "automatically connect to this network" option.
Some formatting/docstring cleanups.
2008-02-11 14:55:29 +00:00
imdano
f6d480d89b Refactored several files (especially gui.py) to be more in line with python conventions and make the code easier to understand.
Added a bunch of docstrings.
Fixed an invalid function call in wnettools.py.
2008-01-25 14:11:59 +00:00
imdano
f7241ad7b7 Simplified psk escape process. 2008-01-24 14:25:27 +00:00
imdano
7886051d87 Committed patch from Sabin Iacob to sanitize a user's psk, to prevent possible parsing errors and security risks. 2008-01-24 10:36:22 +00:00
imdano
9bd9605411 Refactored a few daemon methods from bring registered under the 'wireless' service to 'daemon'.
Fixed the wired autoconnect profile chooser, which was badly broken.
Added a check to GetPluggedIn() that makes sure that the wired interface is up before checking.  If it's not, it tries to put it up.  This is necessary because ethtool doesn't make this check for us, as mii-tool did.
2008-01-22 16:05:30 +00:00
imdano
0528e2436c - Simplified main configuration loading code. This *might* break some old conf files, but should be easy to manually fix.
- Reworked GUI: Moved script button next to connect button, reduced size of both buttons, moved advanced settings from an expander to a dialog and put an advanced settings button next to scripts/connect buttons.
- When a wireless network has encryption enabled, "Secured" will no longer show up in the info for the network unless the encryption type can't be determined.
- Added support for detecting kill switch status (thanks to webograph for the inital patch).
- Reduced the number of calls to iwconfig during connection status updates (it is only called once per update now), which should lower cpu usage.
- Moved Autoreconnect methods from the wireless dbus service to the daemon dbus service.
- Added "Validating Authentication" status message during wireless connection process.
- Added support for disabling monitoring of connection status when computer is suspended, which gets rid of some error messages, eliminates occasional suspension failure, and reduces the odds that wicd will auto connect to a wireless network when a wired network is available. (Right now this feature is disabled, as it requires a script in /etc/acpi/suspend.d/, which can't be included with the current SVN layout.)
2008-01-20 23:09:29 +00:00
imdano
d64850dfd3 Changed misc.Run to use subprocess.Popen instead of os.popen. Also altered Run to optionally return a pipe to the command run, instead of just the output.
The output of dhclient is now parsed by wicd and used to determine why the connection failed.
All the wpa_supplicant conf files will now generate a ctrl_interface, so that they can be accessed by wpa_cli.  wpa_cli now is used by wicd to attempt to determine is wpa_supplicant authentication was successful.  This is still experimental, and might have to be tweaked to work properly.
If wicd.py is started and the daemon isn't present, it will autolaunch it by calling launchdaemon.sh, instead of asking the user to start the daemon manually.
Cleaned up some comments, formatting, etc.
Probably a couple of other little bug fixes I'm forgetting.
2008-01-06 13:55:23 +00:00
imdano
8a0a471764 Fixed cancelling a connection not working.
Stopped the gui status bar from updating while the gui is closed, which reduces CPU usage and should hopefully fix problems with hibernation not working while wicd was running.
2007-12-19 22:35:07 +00:00
imdano
74fb9c330c Fixed encoding problems that would cause wicd to crash if a network returned an essid with exotic characters.
Reduced log spam, and altered how logging gets done a little bit.
Cleaned up some comments, docstrings, etc.
2007-11-20 22:20:10 +00:00
imdano
8e46a359c1 * Completely reworked the gui/tray system. gui.py and edgy/dapper/tray.py are now all run from the same wicd.py file.
* Added a connection_lost_counter to prevent the wicd frontend from trying to automatically reconnect too quickly if signal strength is briefly lost.
* Added some code to hopefully fix some of the dbus-related encoding problems caused by essids with weird characters.  (Might still need work).
* The tray/gui will now show up in the process manager under the name wicd (along with the wicd icon), instead of just python.
* Added a GetCurrentInterface() method to the daemon that will eventually be used in the VPN plugin.
* Fixed a possible crash caused by signal strength not being returned correctly.
* Split the Wired Profile Chooser from the appGui class, so they are now called separately within wicd.py.  When the profile chooser is called from the daemon, it sets a flag as well as sending a dbus signal, so the chooser will still launch if the wicd frontend isn't running yet.
* Added some docstrings, comments, etc.  Probably a few other small changes I'm forgetting.
2007-11-18 01:35:35 +00:00
compwiz18
8f2dfb5361 Added mhenze's patch to add last used wired profile 2007-10-04 03:31:07 +00:00
imdano
2aa36c7329 Fixed more signal display issues
Added a "Connecting..." dialog to tray icon in experimental branch
Possibly fixed issue where GUI statusbar would still show up as connected when ethernet cable was unplugged.
2007-09-20 13:11:43 +00:00
compwiz18
64e5c27ba2 fixed indentation problems 2007-09-04 02:43:25 +00:00
imdano
82958861a7 Completely reorganized edgy.py
Changed the way wired profile chooser gets launched (now uses a dbus signal)
Fixed bug where launching gui.py through the tray sometimes left a zombie (uses a dbus signal)
Added a bunch of docstrings and changed formatting to follow python conventions
Added support for displaying signal strength in dBm instead of a percentage
Added some print statements during the ad-hoc connection process
Started work on a way to autoconnect to a hidden network (not done or working yet)
2007-08-29 18:49:02 +00:00
imdano
697bb050ea Reverted an accidental change to networking.py that undid a bug fix 2007-08-17 06:13:08 +00:00
imdano
1be2d485d7 Changed script execution behavior to fork before running. Causes more reliable execution but can leave zombies. 2007-08-16 12:18:03 +00:00
compwiz18
096d4d40f4 fixed a couple of bugs:
wnettools.py: DetectWirelessInterfaces() didn't return the wireless interface
daemon.py: GetGlobalDNSAddresses() now returns a blank string instead of None for blank addresses; None could not be sent over dbus
2007-08-16 05:55:45 +00:00
metrics
ccf7960694 Fix up some issues spotted by pychecker. 2007-08-16 01:53:13 +00:00
metrics
4e9e960ac9 Split the networking module, moving the common tasks into wnettools.py
By splitting the common tasks performed by the networking module out
into a separate set of classes, it is possible to reduce code
duplication and improve the structure of the networking module.

The wnettools module now performs _almost_ all the actual commands that
control the network interfaces, splitting it from the actual connection
logic contained in the networking module. Splitting these two tasks also
allows for tool changes to be made in a central location, rather than
spread throughout the networking.py file.
2007-08-16 01:07:26 +00:00
imdano
bbf32b3b41 Fixed the typo in networking.py correctly this time :)
Corrected the version number displayed in usage()
2007-08-14 17:02:38 +00:00
imdano
2ed0c5cf75 Improved the behavior of threading in networking.py when an error occurs.
Fixed typo in the wpa_supplicant string in networking.py.
Changed formatting in dapper.py, edgy.py, and networking.py to conform closer to python coding conventions (and hopefully improve readability in general)
2007-08-14 16:01:30 +00:00
metrics
ca8810aa4a Centralise path configuration into a single file.
Path configuration was distributed throughout wicd, making it difficult
to move around project files. Centralise the configuration into
wpath.py.
2007-08-12 00:30:01 +00:00
imdano
4e4e87423d Added disconnection script
Changed auto-reconnection behavior slightly to prevent possible hanging issues
Changed/Added some comments
2007-08-10 07:59:36 +00:00
imdano
e9ea0c4419 Added support for displaying correct network info in drivers using some non-standard display info. 2007-08-04 19:09:05 +00:00
imdano
626cd6010c Changed script execution method so that scripts are always run in usermode.
Removed autostarting daemon code so that script execution would work properly.
Added channel display support for cards that only get frequency info in 'iwlist scan'.
Changed autoconnect behavior to fix a bug where dbus would crash if connecting was taking too long.
Changed/added some comments.
2007-08-01 09:31:43 +00:00
imdano
a984110b49 fixed a typo 2007-07-24 15:30:59 +00:00
imdano
2d38b8f0d4 Added wired auto-connect profile chooser, fixed some bugs in the ralink legacy connection code, reorganized edgy.py and fixed some bugs in it, probably a few other things too 2007-07-23 07:05:05 +00:00
compwiz18
b898f6908a fixed global DNS 2007-07-16 08:35:07 +00:00
imdano
2f942ff865 removed conflict resolution info that would probably cause syntax errors 2007-07-16 06:41:34 +00:00
imdano
c047b9ed45 Added support for ralink legacy cards, implemented a debug mode option, swapped order that autoconnect uses, fixed some indentation issues, changed/added some comments 2007-07-16 06:34:23 +00:00
compwiz18
e55ac1fcba added global dns options (not quite working) 2007-07-16 06:16:52 +00:00
imdano
7aaf402389 Fixed bug caused by wired/wireless daemons using the same function names 2007-07-10 14:32:45 +00:00
compwiz18
4511aad391 syntax error fixed 2007-07-10 05:39:00 +00:00
imdano
d3ca083420 Added script execution support, added autoconnect to wired network support, created a default wired network system to allow autoconnection 2007-07-09 14:41:14 +00:00
imdano
4c4d702e0f Added DNS fix to wired class 2007-07-08 10:36:47 +00:00
imdano
bd9cb2457b Fixed a static DNS bug and added some comments / fixed some typos 2007-07-08 10:31:48 +00:00
compwiz18
6bece259a3 Added ICS support, but commented it out so we can release 2007-07-07 20:09:37 +00:00
compwiz18
709efd2ac4 trying to fix 2007-07-04 14:51:57 +00:00