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

Linux

6388 readers
100 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

top 2 comments
sorted by: hot top controversial new old
[–] just_another_person@lemmy.world 7 points 22 hours ago (1 children)

Just looking through the GitHub issues, it seems this project doesn't support Wayland properly. Try installing XWayland, and see if that works, or move to TrilliumNext which is the more updated form of this project.

[–] checksout@piefed.social 1 points 2 hours ago

Installed xwayland, it worked thanks ☺️