You are not logged in.

#1 2023-12-28 13:36:59

idiotz
Member
From: Switzerland
Registered: 2014-03-22
Posts: 23

ESS R does not display plots when emacs daemon started with systemd

I use emacs-wayland and my desktop is gnome. I enabled emacs systemd service through

systemctl --user enable emacs

I also added the drop-in snippet as indicated in the wiki, namely

[Unit]
Requires=org.gnome.Shell@wayland.service
After=org.gnome.Shell@wayland.service

But when I open an R file with emacsclient and try to plot, nothing shows. There's no error, just nothing is displayed.
If I restart the unit

systemctl --user restart emacs

then plots are shown normally.
Anyone would have an idea of what's going on?

Offline

#2 2024-02-20 19:10:48

beholder
Member
Registered: 2018-08-10
Posts: 7

Re: ESS R does not display plots when emacs daemon started with systemd

This seems to be a problem with emacs on wayland.
Other places [1][2] also are trying to figure that out.

This is how I solved it on my machine:

# 1. remove the drop-in snippet
systemctl --user revert emacs.service

# 2. install emacs-wayland
sudo pacman -S emacs-wayland

# 3. reboot
systemctl reboot

EDIT: I just realized you mentioned you're already using emacs-wayland. In my case, I had just the regular emacs package installed and was running into that issue. I use gnome as well. Once I replaced it with emacs-wayland and removed the drop-in snippet, that's when things started working for me without having to do

systemctl --user restart emacs.service

Last edited by beholder (2024-02-20 19:24:24)

Offline

Board footer

Powered by FluxBB