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

Feature request: Export Preferences #162

Open
Yousha opened this issue Oct 20, 2024 · 5 comments
Open

Feature request: Export Preferences #162

Yousha opened this issue Oct 20, 2024 · 5 comments

Comments

@Yousha
Copy link

Yousha commented Oct 20, 2024

I’d like to request a feature to add an "Export Preferences" option to the calculator. It would be beneficial to be able to export user preferences.

This feature would allow users to easily backup and restore their preferred settings, especially when reinstalling the calculator or switching between devices.

The export could be in a simple JSON or XML format to maintain cross-platform compatibility.

@hanna-kn
Copy link
Contributor

There is no need for any special export format. All settings are saved in simple text files (with setting=value statements), and custom variables, functions, and units in XML files.

All settings for are stored in a single folder, e.g. user subfolder for the Windows zip package, and usually ~/.config/qalculate (~/.local/share/qalculate/definitions for custom objects) on GNU/Linux.

@Yousha
Copy link
Author

Yousha commented Oct 23, 2024

Exporting settings is different from manually copying the config file... and it's not user friendly!

Also there's nothing in ~/.config/qalculate and it does NOT exist.

@hanna-kn
Copy link
Contributor

Exporting settings is different from manually copying the config file... and it's not user friendly!

I agree that it is not user friendly (except when using the Windows zip package). An export preferences option might however be implemented by simply copying the relevant file or folder (to a user specified location, without any need for the user to know the original location), or somehow pointing the user to the folder (e.g. by opening it in the default file manager).

Also there's nothing in ~/.config/qalculate and it does NOT exist.

The correct folder might for example be ~/.var/app/io.github.Qalculate.qalculate-qt/ if using the Flatpak version.

@Yousha
Copy link
Author

Yousha commented Oct 23, 2024

The correct folder might for example be ~/.var/app/io.github.Qalculate.qalculate-qt/ if using the Flatpak version.

Let's talk about Windows OS....

@hanna-kn
Copy link
Contributor

I've now implemented the simplest (and quickest) solution, by adding an option (in the menu) to open the settings folder. This is not necessarily the final solution.

Let's talk about Windows OS....

Either c:\Users\[user name]\AppData\Local\Qalculate or user in the unpacked directory.

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

No branches or pull requests

2 participants