Jump to content

SongRec/Internal formats/preferences.toml: Difference between revisions

From Fossplant
No edit summary
Line 8: Line 8:


(WIP 2026-05-05)
(WIP 2026-05-05)
The location for the <code>preferences.toml</code> file is calculated through the <code>[https://github.com/marin-m/SongRec/blob/0.6.9/src/utils/filesystem_operations.rs#L31 obtain_preferences_file_path]</code> function of <code>[https://github.com/marin-m/SongRec/blob/0.6.9/src/utils/filesystem_operations.rs src/utils/filesystem_operations.rs]</code>.


== Variables ==
== Variables ==


(WIP 2026-05-05)
(WIP 2026-05-05)

Revision as of 23:24, 5 May 2026

The preferences.toml file of SongRec is saved, under Linux, at the ~/.config/songrec/preferences.toml path by default, when using an unsandboxed environment.

It uses the TOML format.

It is written through by the src/core/preferences.rs utility file, which open the path of the preferences file through src/utils/filesystem_operations.rs.

Save location

(WIP 2026-05-05)

The location for the preferences.toml file is calculated through the obtain_preferences_file_path function of src/utils/filesystem_operations.rs.

Variables

(WIP 2026-05-05)