开发者

Application Settings with Mono under Linux

开发者 https://www.devze.com 2022-12-25 09:00 出处:网络
To store application settings, I am using the Settings tab in the project properties. In the code, I write Settings.Default.FontSize = size; and then Settings.Default.Save();

To store application settings, I am using 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 value of the setting should be there. And yes, it is working properly on Windows, with Mono 2.4 on Windows, but NOT working with Mono 2.4开发者_开发知识库 on Linux. It is not saving anything under Linux.

Have you got any clues?

Regards, Petar


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号