all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacsclient --create-frame not creating a window frame
@ 2024-10-21 15:43 Luca Ferrari
  2024-10-21 16:07 ` tomas
  2024-10-24  7:20 ` Luca Ferrari
  0 siblings, 2 replies; 4+ messages in thread
From: Luca Ferrari @ 2024-10-21 15:43 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,
I've emacs 29.2 on ubuntu 24.10, and I'm experiencing some problems
never encountered.
First of all, I compiled emacs from sources.

I launch the emacs daemon via a systemctl script:

[Service]
Type=forking
ExecStart=/opt/emacs/emacs29.2/bin/emacs --daemon

So far so good, in the terminal, if I exec emacsclient the client is
launched in text mode.
But then, if I launch emacsclient --create-frame the client still runs
in text mode, so there is no chance to get a window frame.

Not being able to see any error on the console, how can I investigate
the problem?

Thanks,
Luca



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacsclient --create-frame not creating a window frame
  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
  1 sibling, 0 replies; 4+ messages in thread
From: tomas @ 2024-10-21 16:07 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 787 bytes --]

On Mon, Oct 21, 2024 at 05:43:54PM +0200, Luca Ferrari wrote:
> Hi all,
> I've emacs 29.2 on ubuntu 24.10, and I'm experiencing some problems
> never encountered.
> First of all, I compiled emacs from sources.
> 
> I launch the emacs daemon via a systemctl script:
> 
> [Service]
> Type=forking
> ExecStart=/opt/emacs/emacs29.2/bin/emacs --daemon
> 
> So far so good, in the terminal, if I exec emacsclient the client is
> launched in text mode.
> But then, if I launch emacsclient --create-frame the client still runs
> in text mode, so there is no chance to get a window frame.
> 
> Not being able to see any error on the console, how can I investigate
> the problem?

Could it be that Emacs doesn't see the DISPLAY variable in its
environment?

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacsclient --create-frame not creating a window frame
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Luca Ferrari @ 2024-10-24  7:20 UTC (permalink / raw)
  To: help-gnu-emacs

On Mon, Oct 21, 2024 at 5:43 PM Luca Ferrari <fluca1978@gmail.com> wrote:
>
> I launch the emacs daemon via a systemctl script:
>
> [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.

Any suggestion is appreciated.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacsclient --create-frame not creating a window frame
  2024-10-24  7:20 ` Luca Ferrari
@ 2024-10-24  8:10   ` Michel Verdier
  0 siblings, 0 replies; 4+ messages in thread
From: Michel Verdier @ 2024-10-24  8:10 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-24  8:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.