50 days ago · Tech · hide · Fediverse post

It happens infrequently enough to not investigate too much further, but sometimes I'll end up with my Xorg/X11 session crashing, or something else happening which leads to my existing tmux sessions failing to interact with the new X session, with errors like: % gh repo view --web Opening ... in your browser. Error: cannot open display: :0 % xsel xsel: Can't open display: (null) : Connection refused In this case, the existing panes/windows may end up seeing a related error about failing to connect to the display, but any new panes/windows created will be able to interact as expected. This is a bit of an annoying one, but one way we can solve this is to nudge these panes to use the new DISPLAY. In a new pane/window/terminal session, check the DISPLAY environment variable: % echo $DISPLAY :1 That's likely different to what it shows in one of those existing panes - if so, run: % export DISPLAY=:1 After which, you can then run commands that interact with your X session. It's possible to…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town