-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: emacs service needs restart on first login for emacsclient #3443
Comments
Could you please try again without any |
Will report back when I've checked. |
Ran into this issue as well, so can confirm it's happening. What solved the issue for me was putting this into my home-manager config: systemd.user.services.emacs = lib.mkIf config.services.emacs.enable {
Unit = {
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Install.WantedBy = lib.mkForce [ "graphical-session.target" ];
}; Home-manager currently sets My workaround/solution configures the home-manager service to use However, I think I notice a delay when logging in now, which might be due to my desktop waiting until emacs has fully started? Although I'm not really sure about this. Also, |
FYI, I created a PR three months before this issue was opened. |
I haven't. |
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting. If you are the original author of the issue
If you are not the original author of the issue
Memorandum on closing issuesDon't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort. |
Funnily enough I'd started a rebuild with the latest home-manager before seeing the stale notification. Should know soon enough if it works. |
Alas, this doesn't suffice, I'm still having to restart on login. |
Do you set |
🤦 whoops. Working now (using socket-activation, which is a better way to do it anyway) |
Are you following the right branch?
Is there an existing issue for this?
Issue description
If I try to launch
emacsclient
from the (gnome) application toolbar on first login, nothing shows up and the logs foremacs.service
have:If I try
emacsclient -c
from the shell, I get an error about:0
not being available to open.Restarting the emacs user service fixes the issue until next login.
Maintainer CC
@tadfisher @DamienCassou
System information
Note that channel info is not meaningful, here's flake.lock:
The text was updated successfully, but these errors were encountered: