概要
久しぶりに Native の Ubuntu 22.04 を起動したところ(普段は専らWSLから使っているため)、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.
これまでWayland下で使用していると思っていましたが、実際にはそうではなかったようです。
Forbidden - Stack Exchange
下記を参考に、Waylandを有効にしてみます。
Attention Required! | Cloudflare
行ったこと
/etc/gdm3/custom.conf を編集し、コメントアウトを外し、下記の設定を行いました。
WaylandEnable=true
下記を実行したところディスプレイに何も表示されなくなってしまいました。
$ sudo systemctl restart gdm3
Ubuntuを再起動し、ログイン時に右下に表示される歯車マークのところから Wayland を選んでログインしました。
