Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Properly respect XDG_CONFIG_HOME base directory specification #606

@dsifford

Description

@dsifford

Hi there,

I'm wondering if it would be possible to manipulate the config-ini.c file so that the redshift.conf file is read from the proper locations, per the XDG base directory specification.

https://github.com/jonls/redshift/blob/91e1d30a6f8f37e8a20575ac5e04dd0228080783/src/config-ini.c#L64-L68

If I'm reading this correctly, it appears that the config is read from the root of XDG_CONFIG_HOME folder, and not XDG_CONFIG_HOME/redshift, as it should per the specification. Is there any way this can be adjusted? This is especially important since the redshift directory already exists due to the somewhat recent addition of hook functionality.

TL;DR: $XDG_CONFIG_HOME/redshift.conf should instead be $XDG_CONFIG_HOME/redshift/redshift.conf.

Thanks for considering.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions