From: Michel Verdier <mv524@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: emacsclient --create-frame not creating a window frame
Date: Thu, 24 Oct 2024 10:10:19 +0200 [thread overview]
Message-ID: <87y12dly9n.fsf@free.fr> (raw)
In-Reply-To: <CAKoxK+70xbdS4-vktjZriP_6WwZTOZq6o7su0Twh3jc5NkeB4g@mail.gmail.com> (Luca Ferrari's message of "Thu, 24 Oct 2024 09:20:24 +0200")
On 2024-10-24, Luca Ferrari wrote:
>> [Service]
>> Type=forking
>> ExecStart=/opt/emacs/emacs29.2/bin/emacs --daemon
>
> Even if the daemon is running fine when I login, and in fact I can
> connect only in text mode, I find that restarting the service with
>
> % systemctl --user restart emacs-daemon
>
> makes the client able to create a visual frame.
> Please note that
> % systemctl --user status emacs-daemon
> reports no problem at all. It seems the daemon is started "too soon"
> to understand there is a graphical environment.
I use --fg-daemon instead of --daemon
So I put in my .config/systemd/user/emacs.service
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
[Service]
Type=notify
ExecStart=/usr/bin/emacs --fg-daemon --no-splash
# Emacs will exit with status 15 after having received SIGTERM, which
# is the default "KillSignal" value systemd uses to stop services.
SuccessExitStatus=15
# The location of the SSH auth socket varies by distribution, and some
# set it from PAM, so don't override by default.
# Environment=SSH_AUTH_SOCK=%t/keyring/ssh
Restart=on-failure
[Install]
WantedBy=default.target
prev parent reply other threads:[~2024-10-24 8:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-21 15:43 emacsclient --create-frame not creating a window frame Luca Ferrari
2024-10-21 16:07 ` tomas
2024-10-24 7:20 ` Luca Ferrari
2024-10-24 8:10 ` Michel Verdier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y12dly9n.fsf@free.fr \
--to=mv524@free.fr \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.