Solved xdm: make xconsole go away after log-in

I tried one of the kill ( pkill) commands from a configuration file before, but it had permission problems. I'll try this one. Thanks.
 
xlsclients output is cumbersome, this might work more reliably
Code:
#!/bin/sh

for i
do
  set -- `xwininfo -name "$i"`
  case "$4" in
  0x*)  xkill -id "$4" ;;
  esac
done

Juha


xwininfo seems to have trouble, when there is no window manager. Hrmh...
 
Last edited:
One of my setups doesn't have that problem, but now I realize that's because x11/xconsole isn't installed. I'll try un-commenting it for other installations. It looks like that will work, and I'll like that solution. x11/xkill and x11/xclients is also good for some to know about. Thanks for your responses.
 
Back
Top