View previous topic :: View next topic |
Author |
Message |
crocket Guru

Joined: 29 Apr 2017 Posts: 558
|
Posted: Sun May 15, 2022 6:08 am Post subject: How can I make emacs 28 support wayland? |
|
|
I keep seeing
Code: | (emacs:4548): Gtk-WARNING **: 06:07:51.136: cannot open display: :0 |
when I try to execute emacs with GDK_BACKEND=wayland. |
|
Back to top |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3961
|
Posted: Sun May 15, 2022 9:34 am Post subject: |
|
|
You cant.
Use instead
Code: |
echo "app-editors/emacs * *" >> /etc/portage/package.accept_keywords
USE="-X gtk gui" emerge app-editors/emacs:29-vcs
|
It is the only one that contains "pgtk" references in the ebuild, apparently needed for wayland.
Code: |
elif use gtk && ! use X; then
einfo "Configuring to build with pure GTK (without X11) support"
myconf+=" --with-pgtk --without-x --without-ns"
myconf+=" --with-toolkit-scroll-bars" #836392
myconf+=" --without-gconf"
myconf+=" $(use_with gsettings)"
myconf+=" $(use_with harfbuzz)"
myconf+=" $(use_with m17n-lib libotf)"
myconf+=" $(use_with m17n-lib m17n-flt)"
myconf+=" $(use_with xwidgets)"
|
_________________
 |
|
Back to top |
|
 |
|