Skip to content

Commit ebf6fdc

Browse files
authored
Replace user_config_dir by user_data_dir (#2105)
1 parent 3ff4bb4 commit ebf6fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/todo_2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/main/b
242242
```
243243

244244
We plan to store our data as a file, so we create a utility function to provide a suitable file path for us.
245-
We use [`glib::user_config_dir`](https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/fn.user_config_dir.html) to get the path to the config directory and create a new subdirectory for our app.
245+
We use [`glib::user_data_dir`](https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/fn.user_data_dir.html) to get the path for storing application data and create a new subdirectory for our app.
246246
Then we return the file path.
247247

248248
Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/main/book/listings/todo/2/utils.rs">listings/todo/2/utils.rs</a>

0 commit comments

Comments
 (0)