Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Add startup errors, mention XDG_RUNTIME_DIR in README #5

Merged
merged 1 commit into from
Jun 7, 2020
Merged

Add startup errors, mention XDG_RUNTIME_DIR in README #5

merged 1 commit into from
Jun 7, 2020

Conversation

arp242
Copy link
Contributor

@arp242 arp242 commented Jun 7, 2020

It was just exiting with code 1 for me. The problem turned out to be
that you need to set XDG_RUNTIME_DIR or it won't work (I think e.g.
systemd does that for you, but on Void it's not set by default), so
mention that in the README.

It was just exiting with code 1 for me. The problem turned out to be
that you *need* to set XDG_RUNTIME_DIR or it won't work (I think e.g.
systemd does that for you, but on Void it's not set by default), so
mention that in the README.
@djpohly djpohly merged commit da5b4d9 into djpohly:master Jun 7, 2020
@djpohly
Copy link
Owner

djpohly commented Jun 7, 2020

Ah, Wayland puts its communication socket in $XDG_RUNTIME_DIR, so that needs to be set, and if you're not using elogind (or alternatives) then it might not be configured. I've added a bit of code to check explicitly for this variable as well as including the note on the README and the missing perrors you found. Thanks! :)

@arp242
Copy link
Contributor Author

arp242 commented Jun 7, 2020

Yeah, cheers. You get an error message about it from Wayland if you run it with -v, but not a bad thing to be explicit about that.

Actually, seems a bit strange it doesn't show any message for that by default as the default loglevel dwl sets is WLR_ERROR, and this seems like an error to me (similar situation if the directory doesn't exist: -v/WLR_INFO gives errors, but not with WLR_ERROR)

This is my first experience with Wayland, so maybe it fits with how it's designed to work.

@arp242 arp242 deleted the start branch October 22, 2020 03:09
@BenJarg BenJarg mentioned this pull request Nov 19, 2022
@yoandrisolis yoandrisolis mentioned this pull request Jul 8, 2023
link2xt added a commit to link2xt/dwl that referenced this pull request Nov 19, 2023
…NULL

Passing NULL to wlr_keyboard_set_keymap results in a segfault.
Example:

  Thread 1 "dwl" received signal SIGSEGV, Segmentation fault.
  0x00007ffff7e49b64 in xkb_keymap_ref () from /usr/lib/libxkbcommon.so.0
  (gdb) bt
  #0  0x00007ffff7e49b64 in xkb_keymap_ref () at /usr/lib/libxkbcommon.so.0
  djpohly#1  0x00007ffff7f06389 in wlr_keyboard_set_keymap () at /usr/lib/libwlroots.so.11
  djpohly#2  0x000055555555bc54 in createkeyboard ()
  djpohly#3  0x000055555555c283 in inputdevice ()
  djpohly#4  0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0
  djpohly#5  0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0
  djpohly#6  0x00007ffff7edb52c in  () at /usr/lib/libwlroots.so.11
  djpohly#7  0x00007ffff7ee44b6 in  () at /usr/lib/libwlroots.so.11
  djpohly#8  0x000055555555fe66 in main ()
sevz17 pushed a commit that referenced this pull request Nov 19, 2023
…NULL

Passing NULL to wlr_keyboard_set_keymap results in a segfault.
Example:

  Thread 1 "dwl" received signal SIGSEGV, Segmentation fault.
  0x00007ffff7e49b64 in xkb_keymap_ref () from /usr/lib/libxkbcommon.so.0
  (gdb) bt
  #0  0x00007ffff7e49b64 in xkb_keymap_ref () at /usr/lib/libxkbcommon.so.0
  #1  0x00007ffff7f06389 in wlr_keyboard_set_keymap () at /usr/lib/libwlroots.so.11
  #2  0x000055555555bc54 in createkeyboard ()
  #3  0x000055555555c283 in inputdevice ()
  #4  0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0
  #5  0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0
  #6  0x00007ffff7edb52c in  () at /usr/lib/libwlroots.so.11
  #7  0x00007ffff7ee44b6 in  () at /usr/lib/libwlroots.so.11
  #8  0x000055555555fe66 in main ()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants