From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68799: 30.0.50; emacs --fg-daemon fails silently if server-start fails Date: Wed, 14 Feb 2024 17:10:39 +0200 Message-ID: <45576.4904663496$1707923525@news.gmane.org> References: <86plwzxgff.fsf@gnu.org> Reply-To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14377"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 68799@debbugs.gnu.org, sbaugh@janestreet.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 14 16:11:57 2024 Return-path: Envelope-to: geb-bug-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 1raGvV-0003XH-4X for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Feb 2024 16:11:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raGvJ-0005Br-RS; Wed, 14 Feb 2024 10:11:45 -0500 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 1raGvI-0005Ba-88 for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 10:11:44 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raGvI-0007dK-09 for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 10:11:44 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raGva-0002gb-1g for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 10:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Feb 2024 15:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68799 X-GNU-PR-Package: emacs Original-Received: via spool by 68799-submit@debbugs.gnu.org id=B68799.170792346610256 (code B ref 68799); Wed, 14 Feb 2024 15:12:02 +0000 Original-Received: (at 68799) by debbugs.gnu.org; 14 Feb 2024 15:11:06 +0000 Original-Received: from localhost ([127.0.0.1]:52703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raGug-0002fM-9n for submit@debbugs.gnu.org; Wed, 14 Feb 2024 10:11:06 -0500 Original-Received: from thaodan.de ([185.216.177.71]:47786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raGue-0002ep-Mm for 68799@debbugs.gnu.org; Wed, 14 Feb 2024 10:11:05 -0500 Original-Received: from odin (dsl-trebng12-50dc75-154.dhcp.inet.fi [80.220.117.154]) by thaodan.de (Postfix) with ESMTPSA id 6242ED0374E; Wed, 14 Feb 2024 17:10:40 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1707923440; bh=XCN5jPwcnSrVP/QUE2YE8ComiP0H6rEylH/NAzIgqhA=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=06g/KYaslx8p3SYxn5uBY06F4vJnC4ETeX8PKvAJzErAecTKsPPI7FCqI+58PbSke Aa+iMyH2xQehSu/SQP6uKB+Ug5nNs9Z1QY+c0XKUkn6uqSgJgwQlaqt2OmHuIWzJVG tX3PbylikKQtMngCpFAQ89WFfnkQuf0yveqpOXl5L3rUz6ogK8tD2s2jmxiJ57Ifm+ zHjBotz4QdngQfbJVVHSL3XyrRsSMTCgJ6B8qmq3yur5A9NAC5h/0Ndjy1x4cIEs07 bsoqGGnWe6uGQEaDozpTDy2aW01Qr00/mi+s61iicNmXMfgDkng/6GaYie1SVqWdM3 hJb1as/w25Yj4DEPeQxWlLIHkDFwNyxGCS6+J9Rfkgk+JVPeCp380BoeMpG+PQubGm ctZlb5bQRp8nKsJqOoC9sZ1AJdrfbyH3JCS8VZaR6BWvTacEX2Rej4Z4CM1F9PYPHT 0DQsje4U2DoAAMVUCdJjbwdw/4d89e/Sc5sW5Zw+ABLpEBwED5wUq+M8cJ4N2KNuld 71w6DOd4m4nYhH1PP5ojjj82QdwVvpC6zPMeGMH6UEeO1VmqkgLU2ERNFijG4/1oNG EH5RI81+BZb9qozVdXFltNKDlyCKBhwBDigH+6PlFD5ChvbufJl4I7Wh+zzSXYz8PB /PeMDWh/QIioNFWbCaCtMIHY= In-Reply-To: <86plwzxgff.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Feb 2024 16:35:00 +0200") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280007 Archived-At: Eli Zaretskii writes: >> Cc: 68799@debbugs.gnu.org >> Date: Tue, 13 Feb 2024 23:30:41 +0200 >> From: Bj=C3=B6rn Bidar via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> A side effect of this bug and another is that when emacs --fg-daemon is >> used e.g. in combination with a systemd service. If the service >> takes to long to be ready when a user calls emacsclient that it using >> the standard desktop file it creates another daemon which will then >> make the Emacs started with --fg-daemon fail resulting in the emacs in >> the systemd service fail in circles. > > Please tell more details about the scenario you have in mind, because > I don't think I follow. In particular, why would starting the daemon > take too long? due to what problems? And how is user invoking > emacsclient relevant in this case? AFAIU, systemd starts Emacs at > system start or user login time, whereas emacsclient is invoked when > the user wants to run some command or clicks a desktop shortcut, and > those events are not adjacent in time. > 0. User logs in 1. The session reaches graphical-session.target 2. Emacs executed in emacs.service=20 3. Emacs launches with all it's modes loaded, desktop-mode session restored etc. 4. Emacs is ready to receive commands When the user starts emacsclient before step 4 is reached then it can timeout because it can take some time till Emacs is ready. Step 1. Starts all parts of the programs which require a graphical session including the desktop environment that the user is likely to call upon emacsclient.