Daemon auto-connects even when preference is set to prompt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wicd |
New
|
Undecided
|
Unassigned |
Bug Description
Wicd 1.7.2
If the preference for "Wired automatic connection" is set to "Prompt for wired network profile", the daemon will still auto-connect to the last-used wired profile. The sequence is as follows:
1. First auto-connect loop attempt sets a flag to show the profile chooser prompt, then exits without picking a profile and without connecting
2. Second auto-connect loop sees that the flag is set and falls through to the else clause, which is to pick the last used profile.
3. With a profile picked, the daemon connects to the wired network.
If you start the client before the daemon gets chance to auto-connect, it will prompt for a profile and connect to it. If you start the client *after* the daemon has auto-connected, the prompt will still be shown even though a wired connection has already been made.
I believe a correct behaviour would be to never auto-connect to the wired network when the preference is set to manually choose the wired profile. Only connect to a network specifically submitted from a client prompt. Should the daemon still be allowed to auto-connect to a wireless network in the interim? Currently it doesn't, but it might make sense.