You are not logged in.
Pages: 1
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
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
Pages: 1