What the summary says, most is described below. Reproducible: Always Steps to Reproduce: 1. I enable the systemd user service, thus the daemon starts right on login, 2. slightly later starts my X session (I have `exec sx` in my ~/.zprofile), 3. I run `emacsclient -c` Actual Results: There's no new frame -- the client opens with TUI. To use GUI, I have to start the daemon _after_ the X has initiated. Expected Results: Old behaviour (v28): Emacsclient launches with GUI instead. Possible solution (inspired by NixOS, https://github.com/NixOS/nixpkgs/pull/246008 and https://github.com/nix-community/home-manager/blob/master/modules/services/emacs.nix#L117): when useflags X, pGTK and/or GTK are enabled, the target in the systemd service is changed from `default.target` to `graphical-session.target`.
Created attachment 872941 [details] emerge --info emacs
We install the upstream emacs.service file from the etc/ directory in the tarball, with only small distro-specific changes of binary paths. I suggest that you report the problem upstream (unless NixOS already has?). If some fix gets accepted, we can then backport it to slot 29.
Reading the NixOS PR, they weren't really eager about merging it. Especially: https://github.com/NixOS/nixpkgs/pull/246008#issuecomment-1675754892 "I must say that I'm not a great fan of this change either. It feels to me like this is an upstream bug?"
(In reply to Ulrich Müller from comment #2) > I suggest that you report the problem upstream (unless NixOS already has?). > If some fix gets accepted, we can then backport it to slot 29. Have you reported the problem upstream?