From: Jean Louis <bugs@gnu.support>
To: Davin Pearson <davin.pearson@gmail.com>
Cc: Robert Pluim <rpluim@gmail.com>, help-gnu-emacs@gnu.org
Subject: Re: Trouble getting the daemon thread online.
Date: Tue, 9 Aug 2022 07:03:47 +0300 [thread overview]
Message-ID: <YvHco8w7lcLCs0vF@protected.localdomain> (raw)
In-Reply-To: <CAG9ihEtCq2EZbsToZHt_u4ZM=tb1ZyDfdJCCbq7QwoWwTr0OJA@mail.gmail.com>
* Davin Pearson <davin.pearson@gmail.com> [2022-08-07 04:37]:
> I have written the following batch file: runmacs.bat
>
> cd ~ && emacs --geometry 1024x768 --debug-init $1 &
>
> and placed it in the directory ~/Binaries
>
> Then executing the command runmacs.bat starts emacs every time
> (but not in daemon mode which is my personal preference)
I have following setup in a script, and I start script by clicking
with mouse on an icon. If server has started, it runs emacsclient,
otherwise it starts server, waits 10 seconds and open emacsclient.
#!/bin/bash
export EMACS_SOCKET_NAME="/run/user/1001/emacs/server"
if pgrep -f "emacs --bg-daemon" > /dev/null
then
espeak "Starting Emacs client"
emacsclient -c
else
espeak "Starting Emacs daemon"
emacs --bg-daemon
sleep 10
emacsclient -c
fi
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
prev parent reply other threads:[~2022-08-09 4:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-01 22:36 Trouble getting the daemon thread online Davin Pearson
2022-08-02 8:47 ` Robert Pluim
2022-08-07 1:35 ` Davin Pearson
2022-08-09 4:03 ` Jean Louis [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YvHco8w7lcLCs0vF@protected.localdomain \
--to=bugs@gnu.support \
--cc=davin.pearson@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=rpluim@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).