Skip to content

Handle paths in XDG_DATA_DIRS with trailing slashes - #26

Closed
tomaspinho wants to merge 1 commit into
hyprwm:mainfrom
tomaspinho:main
Closed

Handle paths in XDG_DATA_DIRS with trailing slashes#26
tomaspinho wants to merge 1 commit into
hyprwm:mainfrom
tomaspinho:main

Conversation

@tomaspinho

Copy link
Copy Markdown

Fix for: #19 (comment)

@tomaspinho

Copy link
Copy Markdown
Author

Disclaimer: not a c++ dev, so style may be off. The fix works.

@vaxerski vaxerski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is unsafe, maybe just convert into std::filesystem::path?

@tomaspinho

Copy link
Copy Markdown
Author

Thanks for the review @vaxerski. Just re-implemented in a safer way as per your suggestion.

@Smokolak

Copy link
Copy Markdown

Thanks @tomaspinho as per comment: #19 (comment) I wonder if there can be still more to it?

@vaxerski

Copy link
Copy Markdown
Member

can you guys check my fix over at #27?

@vaxerski vaxerski closed this Oct 29, 2025
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.

3 participants