Package: wicd
Version: 1.5.9-4
Followup-For: Bug #503738

If on the startup of the daemon there is no wire plugged, then wicd
does not seem to take any action on wired connections or disconnections.

This is because, at startup, ConnectionWizard.AutoConnect is executed.
If there is a wire plugged, an ip address will be configured for ethX,
so in ConnectionStatus.check_for_wired_connection at monitor.py:76
wired_ip will not be None and everything will be ok.

But if at start-up there is no wire plugged, then no ip will be configured for 
the device.
So in ConnectionStatus.check_for_wired_connection at monitor.py:76 wired_ip 
will always be None, causing nothing to be done even if CheckPluggedIn is True.

My solution is to add two DBus signals, one for the plug-in event and one for 
the unplug event.

If CheckPluggedIn is True, the wired_ip is not configured, and the plugged 
status variable is False, wicd will send a WirePlugged signal.

If CheckPluggedIn is False and the plugged status is True, wicd will send a 
WireUnplugged signal.

A client application could catch these signals and call 
org.wicd.daemon.ConnectWired dbus method.

A patch is attached.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.28.7 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages wicd depends on:
ii  adduser                       3.110      add and remove users and groups
ii  dhcp3-client                  3.1.1-6    DHCP client
ii  iproute                       20090115-1 networking and traffic control too
ii  net-tools                     1.60-22    The NET-3 networking toolkit
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-dbus                   0.83.0-1   simple interprocess messaging syst
ii  python-glade2                 2.14.1-1   GTK+ bindings: Glade support
ii  python-gtk2                   2.14.1-1   Python bindings for the GTK+ widge
ii  python-support                0.8.7      automated rebuilding support for P
ii  wireless-tools                29-1.1     Tools for manipulating Linux Wirel
ii  wpasupplicant                 0.6.4-3    Client support for WPA and WPA2 (I

wicd recommends no packages.

Versions of packages wicd suggests:
ii  pm-utils                      1.2.4-2    utilities and scripts for power ma

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to