mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-17 08:31:09 -08:00
* src/emacs.c (main): Improve accuracy of daemon warning message on PGTK.
This commit is contained in:
parent
e2fb5ecaea
commit
f0ff20be51
1 changed files with 15 additions and 2 deletions
17
src/emacs.c
17
src/emacs.c
|
|
@ -1734,12 +1734,25 @@ main (int argc, char **argv)
|
|||
sockfd = SD_LISTEN_FDS_START;
|
||||
#endif /* HAVE_LIBSYSTEMD */
|
||||
|
||||
#ifdef USE_GTK
|
||||
/* On X, the bug happens because we call abort to avoid GLib
|
||||
crashes upon a longjmp in our X error handler.
|
||||
|
||||
On PGTK, GTK calls exit in its own error handlers for either
|
||||
X or Wayland. Display different messages depending on the
|
||||
window system to avoid referring users to the wrong GTK bug
|
||||
report. */
|
||||
#ifdef HAVE_PGTK
|
||||
fputs ("Due to a limitation in GTK 3, Emacs built with PGTK will simply exit when a"
|
||||
"display connection is closed."
|
||||
"\nThere is no way to fix this problem, so if you want to use Emacs on Wayland"
|
||||
"on multiple displays and have Emacs survive disconnects, you lose.",
|
||||
stderr);
|
||||
#elif defined USE_GTK
|
||||
fputs ("\nWarning: due to a long standing Gtk+ bug\nhttps://gitlab.gnome.org/GNOME/gtk/issues/221\n\
|
||||
Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost.\n\
|
||||
Using an Emacs configured with --with-x-toolkit=lucid does not have this problem.\n",
|
||||
stderr);
|
||||
#endif /* USE_GTK */
|
||||
#endif
|
||||
|
||||
if (daemon_type == 2)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue