refactor: Linux environment detection logic (#5108)
* fix: wayland framebuffer
* refactor(utils): move linux env heuristics into platform helper
* refactor(linux): let DMABUF override helper use resolved decision
* fix: clippy
* fix: clippy
* feat: NVIDIA detection
* fix: clippy