Skip to content

Replacing set_dir! string literal input by expression - #88

Merged
ealmloff merged 4 commits into
DioxusLabs:mainfrom
Kbz-8:main
Dec 16, 2025
Merged

Replacing set_dir! string literal input by expression#88
ealmloff merged 4 commits into
DioxusLabs:mainfrom
Kbz-8:main

Conversation

@Kbz-8

@Kbz-8 Kbz-8 commented Jun 30, 2025

Copy link
Copy Markdown
Contributor

Just a small PR to be able to do things like :

let mut path = std::env::home_dir().expect("nah");
path.push(".local/share/myapp/");
dioxus_storage::set_dir!(path);

I am not sure about the dioxus versions bump tho.

@Kbz-8

Kbz-8 commented Jul 16, 2025

Copy link
Copy Markdown
Contributor Author

up !

@chunleng

Copy link
Copy Markdown

I am faced with the situation where Android doesn't work because the default is not writing to an accessible path. (Not sure if it's related to this issue)

This PR will definitely be a good workaround so that a correct path derived programatically can be included

Comment thread packages/storage/src/client_storage/mod.rs
@Kbz-8
Kbz-8 requested a review from ealmloff November 14, 2025 11:30
@ealmloff
ealmloff merged commit 426cc17 into DioxusLabs:main Dec 16, 2025
4 checks passed
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