You are not logged in.

#1 2014-10-22 03:02:44

dreamcwli
Member
Registered: 2011-08-13
Posts: 2

Kopete auto connect

Hi,

I use NetworkManager as network backend and configure Kopete to auto connect on startup. But I still have to manually set Kopete to online after I login KDE and wireless network is ready. Is it possible to make Kopete auto connect after network link is ready?

Thanks.

Offline

#2 2014-10-22 10:19:48

Thaodan
Member
From: Dortmund, Nordrein-Westfalen
Registered: 2012-04-28
Posts: 448

Re: Kopete auto connect

Hey a workaround would be to start kopete by this

trys=30 # how many times we check for connections
while [ ! "$( LANG=C nmcli con show -a | tail -n 1 )" = "NAME  UUID  TYPE  DEVICE" ] ; do  # wait until we get an active connection
    trys=$((trys-1))
    sleep 2
    if [ $trys -le 0 ] ; then
	kdialog --icon kopete --caption kopete --title "No Connection" --error "No Connection found"
        exit 1
    fi
done
kopete 

Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux

Offline

Board footer

Powered by FluxBB