Skip to content

feat: Support XDG-compliant locations for the ClickHouse Client configuration file#169

Merged
azat merged 1 commit intoazat:mainfrom
rainac1:feat/xdg-client-config-path
Nov 18, 2025
Merged

feat: Support XDG-compliant locations for the ClickHouse Client configuration file#169
azat merged 1 commit intoazat:mainfrom
rainac1:feat/xdg-client-config-path

Conversation

@rainac1
Copy link
Copy Markdown
Contributor

@rainac1 rainac1 commented Nov 18, 2025

Hi! 👋

This PR updates the config search logic to align with the XDG Base Directory standard. This is part of effort to support XDG paths for the ClickHouse Client configuration file (ref: ClickHouse/ClickHouse#89882).

The new search order is:

  1. $XDG_CONFIG_HOME/clickhouse/ (if the env var is set).
  2. ~/.config/clickhouse/ (standard XDG fallback).
  3. ~/.clickhouse-client/ (legacy path, kept for backward compatibility).
  4. /etc/clickhouse-client/ (system-wide).

Basically, it shouldn't break anything for existing users.

Thanks!

@rainac1 rainac1 changed the title feat: Support XDG-compliant locations for clickhouse-client config file feat: Support XDG-compliant locations for the ClickHouse Client file Nov 18, 2025
@rainac1 rainac1 changed the title feat: Support XDG-compliant locations for the ClickHouse Client file feat: Support XDG-compliant locations for the ClickHouse Client config file Nov 18, 2025
@rainac1 rainac1 changed the title feat: Support XDG-compliant locations for the ClickHouse Client config file feat: Support XDG-compliant locations for the ClickHouse Client configuration file Nov 18, 2025
@azat azat merged commit ae447fc into azat:main Nov 18, 2025
8 checks passed
@rainac1 rainac1 deleted the feat/xdg-client-config-path branch November 19, 2025 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants