简体   繁体   中英

Application Settings with Mono under Linux

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:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM