问题
We get the path of a file from user and keep it in config.ini to start eclipse. But when we update we see that config.ini file is overriden and we loose the information we got and saved in config.ini File.
Where should I use to keep user parameters. Is it possbile to keep a configuration parameter not overriden in config.ini file after an update ? (For example I want to keep a certain key-value pair.) If not how do you prefer to keep user parameters and where ?
回答1:
If not how do you prefer to keep user parameters and where ?
Store them in the user's home directory.
来源:https://stackoverflow.com/questions/33694437/config-ini-file-is-overriden-by-update-where-and-how-to-keep-user-defined-variab