this post was submitted on 11 Mar 2025
9 points (100.0% liked)

Linux

6416 readers
72 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
 

I want to use an electron based app named trilium notes on my system.
I got wayland/niri on nixos
I installed trilium by writing it in configuration.nix and rebuilt system but after starting trillium it gives following error

[7292:0311/205146.782132:ERROR:ozone_platform_x11.cc(240)] Missing X server or $DISPLAY
[7292:0311/205146.782227:ERROR:env.cc(255)] The platform failed to initialize. Exiting.
The futex facility returned an unexpected error code.
Aborted (core dumped)

I tried setting ELECTRON_OZONE_PLATFORM_HINT=auto and DISPLAY=:0 in all three combinations.
This is all I got from internet.
And nothing worked.

So basically I need help from community
Thanks

you are viewing a single comment's thread
view the rest of the comments
[–] checksout@piefed.social 2 points 7 hours ago (1 children)

Installed xwayland, it worked thanks ☺️