Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

book: Make book listings work on macos by using glib user_data_dir #1866

Merged

Conversation

daxhuiberts
Copy link
Contributor

dirs::data_dir() returns a different directory that glib expects for the schemas on macos (see https://docs.rs/dirs/latest/dirs/fn.data_dir.html)
Using glib::user_data_dir() instead will return the expected directory for glib.

@bilelmoussaoui
Copy link
Member

Is the dirs crate still used elsewhere? If not, maybe remove it completely

@daxhuiberts daxhuiberts force-pushed the make-book-listings-work-on-macos branch from 7e32703 to 8775196 Compare October 17, 2024 19:44
@daxhuiberts
Copy link
Contributor Author

Is the dirs crate still used elsewhere? If not, maybe remove it completely

Good suggestion. It was only used in the xtask, so I removed it.

@bilelmoussaoui bilelmoussaoui merged commit 3f68339 into gtk-rs:master Oct 17, 2024
2 of 3 checks passed
@bilelmoussaoui
Copy link
Member

lgtm, thanks!

@daxhuiberts daxhuiberts deleted the make-book-listings-work-on-macos branch October 18, 2024 05:47
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