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

Add support for OpenBSD / make wordexp optional #154

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Nov 10, 2023

  1. OpenBSD doesn't have wordexp(), make it optional

    - like done in swaywm/swaylock#325, provide an alternative for swayidle
      configuration file lookup
    - and provide a handrolled config line parser for 'timeout' commands, using
      strspn(), strchr() and asprintf()
    - the latter is in recent POSIX so move _POSIX_C_SOURCE 200809L definition
      within #if HAVE_WORDEXP
    - OpenBSD doesn't (and won't) have support for systemd/logind, so only care
      about timeout commands
    landryb committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    66d7b4b View commit details
    Browse the repository at this point in the history
  2. drop wordexp() usage for config path lookup

    backports/adapted from swaywm/sway@1d62d6bf
    
    wordexp() still used for config parsing
    landryb committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    2844d38 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a954f9 View commit details
    Browse the repository at this point in the history