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

197 Commits

Author SHA1 Message Date
imdano
d46da02511 Fixed bad except statement in misc.py.
Cleaned up formatting in gui.py.
Made glade template for preferences dialog and rewrote gui.py to use it instead of creating it explictly in the code.
Fixed a bunch indentation/whitespace problems.
Cleaned up a ton of formatting in daemon.py
Fixed a wired autoconnect bug.
Rewrote part of the connection monitoring code, further minimizing the number of external program calls, as well as number of dbus calls.
Added StatusInformation methods to daemon.py, to allow external apps to poll for the current connection status without making several dbus calls.
Fixed bad function call to GetDBMSignalStrength in daemon.py.
2008-01-29 21:03:19 +00:00
imdano
4b4bc55614 Got rid of extra call to ethtool that should only be done if using mii-tool fallback. 2008-01-27 15:36:00 +00:00
imdano
08326e447f Fixed some malformed regular expressions. 2008-01-27 15:32:21 +00:00
imdano
6599b7ce0a 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:12:32 +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
c09b49dd6c Made IsValidIP method check that each ip octet is an integer < 255.
Added checks to the network entry settings menu to make sure that all the settings are valid.
Fixed global dns being set to True whenever static IP address were enabled for wireless networks.
2008-01-25 09:23:50 +00:00
imdano
85bdd4b072 Forgot a file in the last commit. 2008-01-24 14:28:20 +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
c83f18fd65 Moved the advanced settings and script buttons into the main network entry expander. 2008-01-22 09:55:42 +00:00
imdano
5cb41af70b Fixed dns entries not getting cleared from wireless network preferences when they should be
Added signal strength info to uppermost level of each wireless network entry in the GUI.
2008-01-22 09:24:23 +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
compwiz18
03b7ead08f Updated comments in misc.py
Updated some GUI elements
2008-01-15 02:11:36 +00:00
imdano
50ffd944f5 Fixed bad language key for "wired network" in wicd.py 2008-01-09 22:57:13 +00:00
imdano
6a949a6958 Updated wicd.glade to include a missing gtk.Dialog 2008-01-08 10:24:44 +00:00
imdano
2cc990b97a A default wired profile is now created when wired-settings.conf is initially generated. 2008-01-06 21:20:15 +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
4e0dfc8e22 Fixed resizing causing the window to center itself. 2008-01-04 14:08:14 +00:00
imdano
53fc40349d Scripts now can only be setup with root access and always run as root, instead of trying to run as the current user.
Possibly fixed problems with scripts not running when they should and/or leaving zombies.
Slightly reworked the GUI to make the new script system look nicer.
Removed the ability to set script information through built in daemon functions, it now has to be done by directly editing configuration files (which require root access to read/write).
2007-12-29 11:56:47 +00:00
imdano
7d7b943ee7 Make sure daemon alerts tray to change status during connection process.
Specify which network is being connected to in both the tray tooltip and gui statusbar
Clean up code in wicd.py.
Refactor Edgy/DapperTrayIcon class names to something less Ubuntu-specific.
Fix typo in EggTrayIcon that would keep gui from opening.
2007-12-22 22:09:00 +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
da4d84b793 Fixed a bug that would sometimes cause the tray icon to not display the right connection state on startup. 2007-12-17 15:44:41 +00:00
compwiz18
7e6f7938d5 * Fixed a couple more syntax errors 2007-12-17 15:22:04 +00:00
compwiz18
dee28b818c * Fixed indentation errors and syntax errors
* Fixed wicd.py so it starts properly
* Hid the status bar in gui.py when it is displayed via the tray icon
2007-12-17 15:20:02 +00:00
imdano
6d708846d9 Fixed some problems with tabs being used instead of 4 spaces. 2007-12-17 15:17:00 +00:00
imdano
bf32a16e49 Fixed a bug (typo?) in daemon.py that would keep it from working correctly. 2007-12-17 11:49:03 +00:00
imdano
4dadeefdd6 Lowered minimum GUI height to 400.
Added support for the GUI to remember when its resized.
2007-12-17 11:42:16 +00:00
compwiz18
216175b138 Applied pach in https://bugs.launchpad.net/wicd/+bug/175104 to fix signal strength issues, thanks Philip 2007-12-16 19:08:00 +00:00
imdano
c5863cf56f Moved autoreconnect code and connection status updates into the daemon. Daemon now sends D-Bus signals when status changes, which the tray listens for and updates icon/tooltip when received. 2007-12-10 16:48:37 +00:00
imdano
d2c300502e Fix some indentation problems and turned off stdout/stderr redirection in wicd.py since it would break things. 2007-12-04 12:02:14 +00:00
imdano
a8a212712c Adding peap-tkip template part 2 2007-11-22 10:23:33 +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
264e343e30 Fixed some problems with the tray icon running under gtk < 2.10. 2007-11-19 13:22:14 +00:00
imdano
b61018cc17 - Fixed a crash bug caused by dBm signal strength not being found correctly.
- Fixed a crash caused by an incorrectly named variable in wicd.py.
2007-11-18 14:19:50 +00:00
imdano
3eea8cde55 * Removing files (all tray-related) that are no longer used. 2007-11-18 01:37:16 +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
60d6862b3d Fixed the typo in the LEAP template. 2007-10-23 00:45:36 +00:00
compwiz18
5dabdcd540 applied patch from bug https://bugs.launchpad.net/wicd/+bug/149318
applied patch from bug https://bugs.launchpad.net/wicd/+bug/149322
thanks Daniel
2007-10-05 02:29:42 +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
imdano
6f0faa1ac2 Fixed bug in signal strength display for ralink cards
Altered the way ralink network info gets handled during the connection process
2007-09-19 09:56:17 +00:00
compwiz18
64e5c27ba2 fixed indentation problems 2007-09-04 02:43:25 +00:00
imdano
7176183b47 Fixed bug where manually opened (not opened with the tray) gui.py would reopen when closed. 2007-08-31 08:19:13 +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
compwiz18
d11f67c848 fixed the tray icon 2007-08-17 04:36:16 +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