Skip to content

Crash when /etc/hypr/hypridle.conf is missing #176

@heyzec

Description

@heyzec

When a proper config file that works in ~/.config/hypr/hypridle.conf is moved to /etc/hypr/hypridle.conf, hypridle will crash with

terminate called after throwing an instance of 'std::runtime_error'
  what():  Could not find config in HOME, XDG_CONFIG_HOME, XDG_CONFIG_DIRS or /etc/hypr.
zsh: IOT instruction (core dumped)  hypridle

In reality, /etc/hypr was never checked, as can be seen in https://github.com/hyprwm/hyprutils/blob/cb3e797fde5c748164eb70d9859336141136a166/src/path/Path.cpp#L46

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions