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

28 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
98b2547890 Scripts no longer fork into the background by default. 2008-03-20 11:16:49 +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
0bd129df85 Fixed a few more bugs caused by misnamed variables 2008-03-05 15:30: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
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
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
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
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
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
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
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
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
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
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
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
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
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
ba48602aa9 fixed a screw up in my indentation in edgy.py, changed tabs to 4 spaces everywhere it wasn't already 2007-07-17 07:19:10 +00:00
compwiz18
e55ac1fcba added global dns options (not quite working) 2007-07-16 06:16:52 +00:00
compwiz18
6bece259a3 Added ICS support, but commented it out so we can release 2007-07-07 20:09:37 +00:00
imdano
7b541011b5 Fixed bug where tray wouldn't load when it automatically opened the daemon
Fixed some typos
2007-07-05 05:30:09 +00:00
compwiz18
709efd2ac4 trying to fix 2007-07-04 14:51:57 +00:00