Skip to content

fix(dmi_override): use XDG to discover platform config directory#26

Merged
ShadowApex merged 1 commit intomainfrom
shadowapex/xdg-platform-dir
Jun 15, 2025
Merged

fix(dmi_override): use XDG to discover platform config directory#26
ShadowApex merged 1 commit intomainfrom
shadowapex/xdg-platform-dir

Conversation

@ShadowApex
Copy link
Contributor

This change modifies PowerStation to use XDG to look for the platform config directory instead of hard coding it to /usr/share/powerstation/platform. This method will fall back to /usr/share/powerstation/platform if XDG is unable to provide the directory.

@ShadowApex ShadowApex requested a review from pastaq June 13, 2025 20:00
@ShadowApex ShadowApex force-pushed the shadowapex/xdg-platform-dir branch from 6b6a2a0 to 7d5336b Compare June 13, 2025 20:04
Copy link
Contributor

@pastaq pastaq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is for distro/user specific overrides?

@ShadowApex
Copy link
Contributor Author

I assume this is for distro/user specific overrides?

Yes this change will allow for user overrides and will also return the correct directory for distros that do not store configs in /usr/share.

@ShadowApex ShadowApex merged commit ad657f5 into main Jun 15, 2025
3 checks passed
@ShadowApex ShadowApex deleted the shadowapex/xdg-platform-dir branch June 15, 2025 16:47
@github-actions
Copy link

🎉 This PR is included in version 0.6.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants