[2008.09][FSO] Programming interface to wifi Icon

Matthias Apitz guru at unixarea.de
Tue Sep 30 15:44:57 CEST 2008

El día Tuesday, September 30, 2008 a las 02:38:51PM +0100, Arigead escribió:

> Hello all,
>     Want to play with the wifi icon on the FR either in [2008.09] or 
> [FSO] Perhaps [FSO] makes more sense in the long run.
> Anyhow can I from a C Program set the icon? And can I have a call back 
> so that Icon being pressed issues a DBUS message?

If you create a file like this:

root at om-gta02:/usr/share/applications# cat Wifi-up.desktop 
[Desktop Entry]
Comment=Bring Wifi up with ifup eth0
Exec=xterm -e "ifdown eth0 ; iwconfig eth0 txpower auto channel 1 ; killall wpa_supplicant ; killall udhcp ; ifup eth0 ; sleep 20"

the icon will appear and of course you have an action Exec=...


Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz at oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
A computer is like an air conditioner, it stops working when you open Windows
Una computadora es como aire acondicionado, deja de funcionar si abres Windows

More information about the community mailing list