Dan O'Reilly
ae0f589d43
Fix issue where signal strength wouldn't be reported correctly if the first link quality regex didn't match.
...
Add some helper methods that will eventually be used for encryption template parsing.
Use more specific exception checking in a few places.
2009-02-27 00:08:31 -05:00
Dan O'Reilly
5aaaa117e7
Fix typo
2009-02-21 13:11:55 -05:00
Dan O'Reilly
e879b49a82
merge
2009-02-21 01:00:40 -05:00
Dan O'Reilly
b7141f43cb
Create the wpactrl interface connection in a less bizarre way.
2009-02-21 00:57:40 -05:00
Dan O'Reilly
42ef13d5a9
Merge.
2009-02-17 23:44:25 -05:00
Dan O'Reilly
a62840dd96
Refactor wnettools/backend code so that most external tool functionality exists in wnettools, and it just inherited by the external backends. This simplifies creating new backends that just override selected methods.
...
Rewrite encryption template parsing code to allow blank entries (though the GUI still doesn't), and be more permissive of slightly incorrect formatting.
Fix bug in wicd-monitor error handling code.
2009-02-17 23:29:14 -05:00
Dan O'Reilly
7e18194c29
Fix bug where GUI could get stuck in the connecting state if the GUI was first opened while a connection was in progress.
2009-02-13 18:54:27 -05:00
Dan O'Reilly
71583f700b
Merge experimental-rworkman
2009-02-12 20:07:12 -05:00
Dan O'Reilly
13733aaac3
Merged curses changes.
2009-02-12 18:48:10 -05:00
Dan O'Reilly
f237f421ab
Fix issue where GetForcedDisconnect was returning True when we had just connected.
...
Fix issues with auto-switch to wired.
Change to how the gui handles changing state from connecting to not-connecting to be nicer.
Make the gui trigger monitor state updates while in the connecting state.
Make sure the monitor logs a warning when it catches a D-Bus exception.
Make sure cancelling a wired connection attempt kills DHCP.
Fix issue where DHCP wouldn't get run if automatic dhcp tool was enabled.
2009-02-12 18:38:40 -05:00
Dan O'Reilly
4076153796
Make default init script executable.
2009-02-11 22:44:38 -05:00
Dan O'Reilly
8127dc194b
Fix possible crash when handling D-Bus exceptions in monitor.py
2009-02-11 21:01:12 -05:00
Dan O'Reilly
bae95355d7
Make sure it's possible to stop a dhcp client that's in the process of getting a lease.
...
Have gui.py trigger connection status updates every .5 seconds if in a connecting state.
Fix typo in wicd-client.py
2009-02-11 20:55:02 -05:00
Dan O'Reilly
7ee121c15e
Don't convert to milliseconds in misc.timeout_add if milli is True.
2009-02-10 01:08:12 -05:00
Dan O'Reilly
30b59d1a59
Change "Advanced Settings" to "Properties"
...
Remove some unneeded debugging output.
Replace gobject.timeout_add_seconds / gobject.timeout_add if/else logic with calls to a misc.timeout_add method that does it internally.
Only display the dbus lost error message if dbus has been gone for 5 seconds without coming back.
2009-02-10 00:58:11 -05:00
Dan O'Reilly
896510324d
Tweak algorithm for searching for sudo progs so we search every directory in $PATH for a particular app before moving on to the next one.
2009-02-08 19:59:53 -05:00
Dan O'Reilly
e162bb1c7b
Fix crashing bug in daemon.
...
Dont have wicd-monitor inherit stdin from the daemon.
2009-02-08 18:42:05 -05:00
Dan O'Reilly
725da7c5b3
Applied LC_MESSAGES patch from David Paleino
2009-02-08 16:14:17 -05:00
Dan O'Reilly
c3bcda73cb
Enforce only one scan being allowed to happen at a time in the daemon.
2009-02-08 16:09:55 -05:00
Dan O'Reilly
41e356cd97
Always updated the network list if we get a scan finished signal.
2009-02-07 01:50:49 -05:00
Dan O'Reilly
e84a637d31
Fix some issues with the GUI statusbar being incorrect.
...
Make wicd-client more tolerant of dbus exceptions.
Disconnect from both managed interfaces before making a connection.
2009-02-07 01:22:42 -05:00
Dan O'Reilly
450677c83d
Fix bug where interface name was being passed to the dhcp client executable twice.
...
Tweak connect/disconnect to not kill any processes. Instead it releases leases and terminates the wpa_supplicant instance through its ctrl interface. This should make wicd handle multiple connections better.
2009-02-06 19:26:09 -05:00
Dan O'Reilly
cbbf438f34
If the monitor loses contact with the daemon for an extended period, die instead of ignoring the errors.
2009-02-04 23:05:05 -05:00
Dan O'Reilly
70c93746dd
More tweaking of how the GUI updates the status bar. Should be more efficient now.
2009-02-04 19:13:06 -05:00
Dan O'Reilly
22e134b78e
Merge experimental-nacl.
2009-02-04 18:32:58 -05:00
Dan O'Reilly
9fb268d67d
Rather than polling for network status in the GUI, just have the monitor run an on-demand pull and get the results from the daemon. Should reduce iwconfig/ifconfig calls while the GUI is open and make for nicer looking code.
2009-02-04 00:26:13 -05:00
Dan O'Reilly
3fe1bca50e
Fix bug where link detection tool value wasn't get propogated down the stack.
2009-02-03 23:48:58 -05:00
Dan O'Reilly
227704f137
Merge experimental-rworkman
2009-02-03 21:21:40 -05:00
Dan O'Reilly
2efc04091d
Add a .bzrignore file.
2009-02-03 19:59:53 -05:00
Dan O'Reilly
5a6bdbdef4
Remove unneeded parameter from PreferencesDialog constructor.
2009-02-03 19:38:07 -05:00
Dan O'Reilly
11c1c48b92
Make sure we try each external app in order if selection is set to be automatic.
2009-02-03 19:35:57 -05:00
Dan O'Reilly
b54dbcff92
Make sure debug settings are propogated down the stack as soon a the daemon loads.
2009-02-03 00:05:11 -05:00
Dan O'Reilly
e23af9b413
Make GetWirelessInterfaces() return a list instead of the first interface. Also make the networking.py layer pull the first entry from the list.
...
Some documentation cleanup.
2009-02-02 23:47:54 -05:00
Dan O'Reilly
6347842000
Minor formatting tweak
2009-02-02 23:39:52 -05:00
Dan O'Reilly
315ff97d87
Simplify the inheritance of static wnettools functions in the backends.
...
Make sure we select a default route flushing tool.
2009-02-02 23:05:29 -05:00
Dan O'Reilly
80593acd58
Merge NaCl's curses frontend and rworkman's experimental branch.
2009-02-01 23:32:55 -05:00
Dan O'Reilly
28b6aac2db
Remove some comments.
2009-02-01 23:32:28 -05:00
Dan O'Reilly
8594116630
Make it possible for the user to select which graphical sudo application to use.
...
Make any external apps not installed on the system unselectable in the GUI.
Rework the app selection code in the backend to fall back to auto-selection if a requested app isn't installed.
Tweak the autoconnect attempt throttle in wicd-monitor to not be as aggressive.
Made sure the preferences dialog would reconnect to dbus when a DaemonStarting signal was sent.
2009-02-01 23:10:11 -05:00
Dan O'Reilly
dca0f59b06
Fix broken Scan() call in wicd-client
2009-01-31 20:22:15 -05:00
Dan O'Reilly
d22a59cbcc
A bunch of small fixes for errors/warnings reported by Pylint.
2009-01-31 00:31:50 -05:00
Dan O'Reilly
339b622b09
Fix crash if essid is None
2009-01-30 21:20:43 -05:00
Dan O'Reilly
d26204676c
Merge translations updates.
2009-01-28 19:54:17 -05:00
Dan O'Reilly
467688beda
Always scan when the daemon starts.
...
Remove old init scripts.
2009-01-28 19:52:51 -05:00
Dan O'Reilly
d20dafa088
Fix issues with the way disconnect scripts work.
...
Make flushing the route table more likely to work.
2009-01-26 18:46:57 -05:00
Dan O'Reilly
45e228d6e4
Fixing the fix...
2009-01-25 16:43:45 -05:00
Dan O'Reilly
613215f033
Don't try to set properties in the advanced dialog before it exists.
2009-01-25 16:40:26 -05:00
Dan O'Reilly
c92efc5279
Fix issue where toggling default wired profile could cause settings to get set for multiple profiles.
...
Remove some no longer needed checks in the daemon.
2009-01-25 16:34:32 -05:00
Dan O'Reilly
7a375db453
Add UI portion of wired switch feature.
2009-01-25 15:15:49 -05:00
Dan O'Reilly
a2e757a64d
Add new wired GUI icon.
2009-01-25 00:44:51 -05:00
Dan O'Reilly
9d6a7c9d78
Merge in improved wired profile UI
...
Tweak how wired profile list is built to be simple/more efficent and not cause a dbus error.
2009-01-24 23:54:57 -05:00
Dan O'Reilly
ec37206905
Initial work on automatic switchover to wired networks (no UI work yet)
...
actually use "write=True" instead of just "True" everywhere we do config writes explicitly.
Fix the scripts dialog not working for wired connections.
Force the monitor to update state after triggering a disconnect or connect.
Remove an unneeded Scan call from autoconnect.py
2009-01-24 23:31:24 -05:00
Dan O'Reilly
290006629b
Fix broken Scan() call in autoconnect.py
2009-01-23 08:35:28 -05:00
Dan O'Reilly
540b8b8a3e
Tweak a comment
2009-01-22 21:51:03 -05:00
Dan O'Reilly
c494387a80
Tweak autoconnect logic be more likely to work if initial scans don't give us good results.
2009-01-22 21:26:05 -05:00
Dan O'Reilly
33a08b696e
Add missing guiutil module
2009-01-20 23:55:43 -05:00
Dan O'Reilly
f6d7579859
Add support for writing config data with whitespace kept intact.
...
Propgate debug setting to the ConfigManager instances.
Don't write essid key sections to the config file if we're not actually using them.
2009-01-20 00:32:56 -05:00
Dan O'Reilly
1269bcd048
Fix a few typos in the option gateway code.
2009-01-19 23:45:05 -05:00
Dan O'Reilly
87539f75e7
Fix bug that was keeping DHCP release from working.
2009-01-19 23:37:35 -05:00
Dan O'Reilly
ea4ab09984
Fix ttls template
...
Add a guiutils module for gui-related functions/classes that are used in multiple modules.
Replace os.access with os.path.exists
Make the static gateway entry optional.
Don't auto-connect/reconnect when the gui is open.
Fix bug that would keep the gui from working if the wired network entry was displayed.
2009-01-19 01:06:57 -05:00
Dan O'Reilly
75219d78c4
Fix bug where encryption keys with non-ascii characters caused crashes.
...
Only write settings being saved if debug mode is on.
Clear keys entered through the GUI when the encryption checkbox is disabled.
2009-01-17 12:58:02 -05:00
Dan O'Reilly
4f22df62b0
Merging in noexpander branch.
2009-01-15 01:25:24 -05:00
Dan O'Reilly
fcf01b12b3
Use dbusmanager in autoconnect.py
2009-01-15 01:22:40 -05:00
Dan O'Reilly
514facb4aa
Tweak default window sizes
2009-01-15 01:21:54 -05:00
Dan O'Reilly
a214a15d24
merge in experimental branch
2009-01-15 00:59:52 -05:00
Dan O'Reilly
2358357f1d
Fix bug where be-ioctl scans always reported channels as 1.
...
Tweak the UI a little bit.
Add debugging output when forced_disconnect gets enabled.
2009-01-15 00:56:02 -05:00
Dan O'Reilly
2978102ba4
merge
2009-01-11 20:15:01 -05:00
Dan O'Reilly
32bb203849
Initial crack at reworking GUI some more.
2009-01-09 23:58:14 -05:00
Dan O'Reilly
3b1f636ae0
Merge in rworkman-experimental
2009-01-02 19:57:21 -05:00
Dan O'Reilly
7cadae7131
Move logic that saves settings for network entries out of gui.py and into netentry.py.
2009-01-02 19:52:28 -05:00
Dan O'Reilly
997e523722
Add a domain entry for dns settings.
...
Display an error if global dns is enabled for a network, but global dns entries aren't entered in the general preferences window.
2008-12-30 23:20:00 -05:00
Dan O'Reilly
da54e6033b
Fix bug where the daemon could crash if an encryption key was entered for a network without encryption on.
...
Some minor code formatting changes
Replace "new" with "experimental" in description for ioctl backend.
2008-12-28 16:19:18 -05:00
Dan O'Reilly
f66e8759cc
Fix prefs label
2008-12-27 18:31:50 -05:00
Dan O'Reilly
9caae86049
Make backend combobox tooltip display the active backend's description.
...
Reverse the order of the OK/Cancel button in the Ad-Hoc connection dialog.
Use a new set of icons.
Extend the update invervals for all backends by 1 second.
Try to use en_US.utf8 instead of C as the LANG in misc.Run if it is available.
Add ability to force a network state update. (Currently not used).
2008-12-27 18:23:15 -05:00
Dan O'Reilly
10df01a9c2
Tweak misc.to_unicode() so that it is more likely to encode to utf-8 correctly.
2008-12-23 21:10:17 -05:00
Dan O'Reilly
92300133b8
Fix "_" getting stripped from interface names.
2008-12-23 18:23:38 -05:00
Dan O'Reilly
04d96bafee
Fix problem where combobox entries would get screwed up when the preferences window was opened more than once.
2008-12-22 21:28:31 -05:00
Dan O'Reilly
2c24f4b0db
Fix some issues with wired networks caused by refactoring.
...
Add missing return statement.
2008-12-22 00:20:42 -05:00
Dan O'Reilly
16aad93feb
More work on bubbling the reason for connection failures up to the UI.
...
Refactor Wireless/Wired classes in networking module and daemon so that they don't need to reference each other. Wired objects don't know about Wireless objects and vice versa. This also means connecting to a wired/wireless network will only clear the connection on whichever network type you're connecting to.
2008-12-22 00:05:19 -05:00
Dan O'Reilly
a82b53309e
Checkpoint for work on getting reasons for connection failure back up to the UI.
2008-12-21 00:19:18 -05:00
Dan O'Reilly
69d2cd2d77
Fix non-blocking error dialog.
2008-12-16 01:30:46 -05:00
Dan O'Reilly
556c40ad75
Make gui.error() calls optionally not block.
...
Make the lost dbus error message translatable.
2008-12-16 01:19:26 -05:00
Dan O'Reilly
ba3bc2afc2
Only show valid wpa_supplicant drivers in the GUI.
...
Don't needlessly created PreferenceDialog objects.
Use dbus signals to alert the UI that the daemon is back up, instead of polling.
2008-12-16 00:48:47 -05:00
Dan O'Reilly
318024a123
Fix some gtk warnings that would pop up when the GUI was opened.
...
Fix broken Network menu entries.
2008-12-15 00:31:35 -05:00
Dan O'Reilly
d0200db00c
More work on making the client handle a daemon restart
2008-12-14 22:19:35 -05:00
Dan O'Reilly
ab7b331aac
Make client survive the daemon going down.
...
Port a few fixes from trunk.
2008-12-14 18:31:24 -05:00
Dan O'Reilly
41c975a22a
Make sure autoconnect.py never blocks
...
Tweak configmanager to not write a default value unless one is specified in the get call.
2008-12-13 19:39:15 -05:00
Dan O'Reilly
742bf5f8ce
Use RawConfigParser instead of ConfigParser
2008-12-13 17:32:54 -05:00
Dan O'Reilly
20d5fd285b
Pass lists instead of strings in GeneratePSK and Authenticate methods.
2008-12-13 17:07:31 -05:00
Dan O'Reilly
6e4d70c4ea
Fix saving scripts not working correctly.
2008-12-13 13:28:05 -05:00
Dan O'Reilly
69b011a1e7
merging
2008-12-13 01:49:15 -05:00
Dan O'Reilly
7794e9abb9
Fix some suspend/resume issues
2008-12-13 01:37:57 -05:00
Dan O'Reilly
2e21e6abb0
Fix dbus permissions problem.
...
Fix missing dbus import.
2008-12-11 18:42:11 -05:00
Dan O'Reilly
2b47ff538e
Apply patch from rworkman
...
Update suspend/resume script
2008-12-11 00:56:12 -05:00
Dan O'Reilly
254d7c55dc
More build fixes
2008-12-11 00:37:07 -05:00
Dan O'Reilly
9c2a808577
Add missing man file
2008-12-11 00:33:10 -05:00
Dan O'Reilly
e3c70de4f5
Fix running scripts
...
Fix broken symlink
Update slackware init script
Add new build options to wpath.py
2008-12-11 00:29:00 -05:00
Dan O'Reilly
faf60f6ed3
Make sure suspend script never fails
2008-12-09 22:53:30 -05:00