Subject: Re: bug#62938: 30.0.50; Emacsclient -nc can fail with to many arguments under Wayland

From: Robert Pluim <[email-masked]>
Date: Thu, 20 Apr 2023 10:46:40 +0200

>>>>> On Thu, 20 Apr 2023 08:57:20 +0300, Björn Bidar <[email-masked]> said:
    >> How are you starting the daemon emacs? Does this still happen if you
    >> start the daemon as 'emacs --fg-daemon' instead.

    Björn> I'm starting it using systemd --user:

    Björn> ~/:systemctl --user cat emacs.service  
    Björn> # /home/bidar/.local/etc/systemd/user/emacs.service

    Björn> [Unit]
    Björn> Description=Emacs: the extensible, self-documenting text editor
    Björn> Wants=graphical.target
    Björn> Wants=environment.target

    Björn> [Service]
    Björn> Type=forking
    Björn> ExecStart=/usr/bin/emacs --daemon
    Björn> ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
    Björn> Environment=SSH_AUTH_SOCK=%t/keyring/ssh
    Björn> Restart=always
    Björn> TimeoutStartSec=0
    Björn> [Install]
    Björn> WantedBy=default.target

    Björn> # /home/bidar/.local/etc/systemd/user/emacs.service.d/gdkenv.conf
    Björn> [Service]
    Björn> Environment=GDK_DPI_SCALE=0.8
    Björn> Environment=GDK_SCALE=2

    Björn> # /home/bidar/.local/etc/systemd/user/emacs.service.d/override.conf
    Björn> [Service]
    Björn> TimeoutStopSec=600

    Björn> I don't think using fg-daemon should make a difference.

Running 'emacs --fg-daemon' outside systemd is what I meant.

Robert
--