From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michel Verdier Newsgroups: gmane.emacs.help Subject: Re: emacsclient --create-frame not creating a window frame Date: Thu, 24 Oct 2024 10:10:19 +0200 Message-ID: <87y12dly9n.fsf@free.fr> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33310"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 24 10:11:16 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t3sw8-0008TR-7A for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Oct 2024 10:11:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3svQ-0001vK-3H; Thu, 24 Oct 2024 04:10:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3svO-0001tg-1G for help-gnu-emacs@gnu.org; Thu, 24 Oct 2024 04:10:30 -0400 Original-Received: from smtp1-g21.free.fr ([2a01:e0c:1:1599::10]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3svK-0006pD-Qc for help-gnu-emacs@gnu.org; Thu, 24 Oct 2024 04:10:28 -0400 Original-Received: from turing.free.fr (unknown [IPv6:2a02:8428:59c:b401:da43:aeff:fe96:6c8d]) (Authenticated sender: mv524@free.fr) by smtp1-g21.free.fr (Postfix) with ESMTPSA id 16BC1B00571 for ; Thu, 24 Oct 2024 10:10:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1729757420; bh=l6X+uNWSv7gWh39z0anBVlW6ItZl53BfkOPxDzKqIVA=; h=From:To:Subject:In-Reply-To:References:Date:From; b=I8sOSkd5kE5Rd9bV/QC5ubXOr1Q3DIIsPD7FZYMklqa+GLp36n9pyPUf6L9ReBk3x 7UQClOKbovs4XdPjaQ9MigHPmu+OVegQ9273IAeM7v0xxzHJ2Q50/8pJx/xxjWVn0/ G3gueEMjBdleUYZ54yfgfwvu5mJity+2RWFZ+DiuYULVf+gMBDoGj12GnqBDjterkD EBc4TB3ULs3RVQhBCPSw+aMSGVf9RdBMcFa6LQXvHMY5erOW1Ia7GxRcduoSDZTE4X /MRZhy8P10hluxdRxAkq4Mi8UsHPeFYQXrcRe6e3bEX9SFetGHIpVby8prlsVIvJiG Nz9pMoJuOsEoA== In-Reply-To: (Luca Ferrari's message of "Thu, 24 Oct 2024 09:20:24 +0200") Mail-Copies-To: never Received-SPF: pass client-ip=2a01:e0c:1:1599::10; envelope-from=mv524@free.fr; helo=smtp1-g21.free.fr X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148234 Archived-At: 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