Re: How to restart x11/StumpWM from a different tty.
Lionel Flandrin <[email protected]> Thu, 09 Apr 2020 13:29:24 +0000
| Newsgroups | gmane.comp.window-managers.stumpwm.devel |
|---|---|
| Message-ID | <Z6JLogObJBQ_bXoGSdhYPXh-WJIexWnIObpFIfPFdAP_Rnxf7-KfjakJMLVBMq0xEIUfGuTuiyYXUlyvN8ZTeDHu07fdliBQxHe77Y5KUJo=@svkt.org> |
By the way, if you use a similar script you probably want to add a "rm -f /tmp/stopstump" before the while loop, otherwise you won't manage to restart the WM if you use a login manager since the script will quit immediately. I noticed that the hard way... -- Lionel Flandrin ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Tuesday, April 7, 2020 7:58 PM, Lionel Flandrin <[email protected]> wrote: > You can set the DISPLAY environment variable to connect to X from any terminal. In bash/zsh this should do the trick: > > export DISPLAY=:0 > > Then your commands will work. > > I have a dirty trick to handle WM crashes: instead of starting the stumpwm binary directly I use a shell script that does something like: > > while [ ! -f /tmp/stopstump ] > do > stumpwm > sleep 1 > done > > This way if stumpwm crashes or freeze and I have have to kill it it's restarted automatically without killing my X session and running programs. If I really want to quit the WM and end the session I have to "touch /tmp/stopstump" first. > > A bit ugly, but it served me well. > > -- > Lionel Flandrin > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > On Tuesday, April 7, 2020 6:58 PM, Eric Ihli <[email protected]> wrote: > >> Sometimes my graphic environment locks up. I think this is a StumpWM issue since my keyboard and mouse continue to "work". I can move the mouse around and switch to a different tty using ctrl-alt-f<n>. But nothing works in the tty where I ran `startx`. >> >> What can be done from a different tty to troubleshoot/fix the issue? I've tried `stumpish` from another tty but I get the error `xprop: unable to open display`. >> >> Other possibly relevant info is that my `.xinitrc` launches StumpWM with `dbus-launch --with-exit-session --sh-syntax stumpwm`. >> >> Thanks, >> Eric