Thanks for the package. I get this error everytime I run Emacs: “You are trying to run Emacs configured with the pure-GTK interface under the X Window System. That configuration is unsupported and will lead to sporadic crashes during transfer of large selection data. It will also lead to various problems with keyboard input.”
I’m running Emacs on the KDE Plasma Spin of Fedora 38, using the X server. Apparently the binary should be compiled without the --with-pgtk flag.
If someone wants to test this on Silverblue, they’ll have an issue as the emacs-filesystem package is included in the base image.
To work around this, you can do like this (after removing any Emacs-related overrides you may have previously):
Download the COPR repo file and copy it to /etc/yum.repos.d/bhavin192-emacs-pretest.repo
Run rpm-ostree override replace 'https://download.copr.fedorainfracloud.org/results/bhavin192/emacs-pretest/fedora-37-x86_64/05870602-emacs/emacs-filesystem-29.0.90-1.fc37.noarch.rpm' (replace with link matching the build you want).
Run rpm-ostree install emacs. This should now get the same build from the COPR that matches the emacs-filesystem you updated to.
Your rpm-ostree status should now have something like
Like @jbotz said, install emacs-gtk+x11 package. And then launching Emacs normally with application entry should open the Emacs compiled without pgtk. Let me know if that doesn’t work. Also, can you share output of following command:
echo $XDG_SESSION_TYPE
You can remove the emacs package afterwards. I’m thinking of modifying that error message with a hint about emacs-gkt+x11 package.
Understood. Uninstalling the emacs package might help with the systemd service as alternatives will update the /usr/bin/emacs so it starts pointing to emacs-gtk+x11. But that will also remove the emacs.desktop file i.e. entry from the applications list in your desktop environment. I will see what can be done for this.
Another temporary workaround is to use alternatives and select gtk+x11 Emacs.