epoptes team mailing list archive
-
epoptes team
-
Mailing list archive
-
Message #00916
[Bug 1011482] Re: automatic reconnect of client if server went away
Hi there!
Instead of hacking /usr/sbin/epoptes-client, I've written a wrapper
script to be executed instead in /etc/xdg/autostart/epoptes-
client.desktop. Here's the code (tested on Xubuntu 15.04):
#!/bin/sh
old_hostname=$(hostname)
[ -x /usr/bin/nm-online ] && nm-online --timeout=600
until [ "$State" = "closing" ]
do
new_hostname=$(hostname)
if [ "${new_hostname}" != "${old_hostname}" ]
then
cookie=$(xauth list ${old_hostname}/unix${DISPLAY} | cut -f5 -d' ')
xauth add "${new_hostname}/unix${DISPLAY}" "MIT-MAGIC-COOKIE-1" ${cookie}
old_hostname=${new_hostname}
fi
epoptes-client
eval $(loginctl show-session ${XDG_SESSION_ID} | grep "State")
done
--
You received this bug notification because you are a member of Epoptes
Developers, which is subscribed to Epoptes.
https://bugs.launchpad.net/bugs/1011482
Title:
automatic reconnect of client if server went away
Status in Epoptes:
Confirmed
Bug description:
Its nessary if the client cant connect to server / connect to server
lost that the client does a polling every minute to establish the
connection again.
To manage notifications about this bug go to:
https://bugs.launchpad.net/epoptes/+bug/1011482/+subscriptions
References