Application Settings with Mono on Linux

To save application settings, I use the Settings tab in the project properties. In the code I write Settings.Default.FontSize = size; and then Settings.Default.Save(); When I close the application and run it again, the new parameter value should be there. And yes, it works correctly on Windows, with Mono 2.4 on Windows, but does not work on Mono 2.4 on Linux. This does not save anything under Linux.

Do you have any clues?

Regards, Petar

+4
source share
1 answer

I found that Mono saves user settings in ~ / .local / share /. There were already settings (without me) of another version of the program. I just deleted the folder, and Mono saved the new one. Everything worked fine :)

+5
source

Source: https://habr.com/ru/post/1305639/


All Articles