Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failed startup in pgtk mode without display #1

Closed
wants to merge 1 commit into from
Closed

Fix failed startup in pgtk mode without display #1

wants to merge 1 commit into from

Conversation

omgold
Copy link

@omgold omgold commented Oct 13, 2022

With the pgtk branch, when neither a Wayland display or a X11 display are available nor -nw is given, emacs startup fails with

(emacs:2980530): Gtk-WARNING **: 11:18:31.402: cannot open display:

I believe the display initialization for pgtk should (just as for X11) check whether a display is specified via env or -d

* src/dispnew.c (init_display_interactive):
In pgtk mode, inhibit window system,
when both DISPLAY and WAYLAND_DISPLAY are unset
* src/emacs.c (main):
Also defined and allow to set display_arg in pgtk mode
@omgold omgold closed this by deleting the head repository Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant