Skip to content

Use meson config_path as fallback instead of hardcoded /usr/local#727

Open
ljdi wants to merge 1 commit intoErikReider:mainfrom
ljdi:fix-hardcoded-fallback-path
Open

Use meson config_path as fallback instead of hardcoded /usr/local#727
ljdi wants to merge 1 commit intoErikReider:mainfrom
ljdi:fix-hardcoded-fallback-path

Conversation

@ljdi
Copy link
Copy Markdown

@ljdi ljdi commented Apr 19, 2026

Fixes: #726

The hardcoded fallback path /usr/local/etc/xdg/swaync/ in src/functions.vala breaks installations with custom prefixes (e.g. ~/.local, FreeBSD's /usr/local, NetBSD's /usr/pkg).

This PR injects the meson config_path (resolved at build time) into the Vala source as a compile-time constant, replacing the hardcoded fallback in both get_style_path() and get_config_path().

Related: #4, #167, #168

The hardcoded fallback path /usr/local/etc/xdg/swaync/ breaks
installs with custom prefixes (e.g. ~/.local). Use the meson
build-time config_path to dynamically set the correct fallback.

Fixes: ErikReider#726
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.

Fallback config/CSS paths hardcoded to /usr/local break custom prefix installs

1 participant