AnsweredAssumed Answered

Question asked by srhode on Mar 11, 2009 file is responsiable for remembering the state of the user's contact groups when he/she signs out of Spark. I found an issue with the current code and wanted to make everyone aware of it.


Currently the file is stored under spark user home and this locaction is global to the machine user profile. So this file would be shared should a user have multiple accounts. Most of the time a given user would only have one account, but a user could have more than one account for example a user could login to different servers and that would create different profiles, but the file would manage both accounts.








The file is currently being stored like this:


Existing Code:

     propertiesFile = new File(Spark.getSparkUserHome() + "/");



Result for existing code:




Suggested Change to store the file like this:


Modified Code:

     propertiesFile = new File(SparkManager.getUserDirectory() + "/");


Result for modified code:




This change would prevent the file from being shared across the user's accounts.