Skip to content

plasma on wayland: legacy X11 apps fail to autostart due to missing X11 server but start flawlessly after plasma gets initialized #225605

@pshirshov

Description

@pshirshov

Sometimes all the legacy X11 apps from my .desktop files in the XDG autostart directory fail to start when I log into a plasma wayland session due to missing X11 server:

Apr 10 18:19:18 pavel-nix systemd[3812]: [email protected]: Failed with result 'core-dump'.
Apr 10 18:19:18 pavel-nix element-desktop[152129]: [152129:0410/181918.273372:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY
Apr 10 18:19:18 pavel-nix element-desktop[152129]: [152129:0410/181918.273423:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.
Apr 10 18:19:18 pavel-nix element-desktop[152129]: The futex facility returned an unexpected error code.
Apr 10 18:19:18 pavel-nix systemd-coredump[152385]: [🡕] Process 152129 (.electron-wrapp) of user 1000 dumped core.

Though I can flawlessly launch them manually.

Probably either DISPLAY environment variable isn't being initialized or there is some kind of a race condition/missing dependency.

Usually everything works well after reboot but doesn't work after I log out of the session and log in back, so I'm inclined to think that that's a race condition.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.23, NixOS, 23.05 (Stoat)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos-21.11pre333218.263ef4cc414, home-manager"`
 - channels(pavel): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: qt/kdeObject-oriented framework for GUI creation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions