Is you pi booting into a logged in desktop?
When it is, my experience is that applications with native wayland support will always connect to that session even when started over ssh. Whether $DISPLAY is set or not doesn't mater as it applies only to X.
Again, if your Pi is booting to the desktop, you have options:
When it is, my experience is that applications with native wayland support will always connect to that session even when started over ssh. Whether $DISPLAY is set or not doesn't mater as it applies only to X.
Again, if your Pi is booting to the desktop, you have options:
- Switch from Wayland to X11. You can do this in raspi-config.
- Reconfigure your PI so it boots to command line. Again, you can do this in raspi-config.
- Check if codeblocks supports a --display commandline argument. If ti does use that with $DISPLAY.
Statistics: Posted by thagrol — Mon Dec 22, 2025 4:57 pm