* Patrick Shanahan <paka@opensuse.org> [12-21-17 15:24]:
* Jan Engelhardt <jengelh@inai.de> [12-21-17 14:45]:
On Thursday 2017-12-21 15:46, Patrick Shanahan wrote:
I have a python backup instance runs at 3am every day, backintime: /usr/share/backintime/common/tools.py def check_x_server(): return 0 == os.system( 'xdpyinfo >/dev/null 2>&1' )
for some reason the xdpyinfo instance persists.
So, does your script have DISPLAY set when it shouldn't?
backintime in ~/.local/share/backintime/cron_env shows: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DISPLAY=:0 KDE_FULL_SESSION=true XAUTHORITY=/tmp/xauth-1000-_0
so, I guess that would be "yes", but I don't know that it shouldn't ??? or, if in fact that does set $DISPLAY.
suggestions welcome, I know *nearly* nothing :)
fvogt suggested on irc that I run "gdb -p $(pidof xdpyinfo)" when the xdpyinfo instance is present. output at: http://wahoo.no-ip.org/~paka/xdpyinfo.gdb.txt + thread apply all bt http://wahoo.no-ip.org/~paka/xdpyinfo.gdb2.txt also strace -p $(pidof xdpyinfo) http://wahoo.no-ip.org/~paka/xdpyinfo.strace.txt -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org