Dmitri, this error you get is due to the System.getProperty("userprofile") method. In windows it gets the environment variable C:\Documents and settings\user. I wrongly thought that in linux it will give me something like /home/user/. As in windows vista and linux the administrator rights are very restrictive, that was the option I thought about to be able to save configuration files. Any guess on how to save user settings? If I write a file without no route, then if you run the app from the desktop link it will write the .ini files to the desktop and that is not very clean... It depends on what link you run. I need to find a path for the config files that can be accessed without restrictions for the 3 OS (windows, mac and linux) If you have any idea let me know
Will this help?
String osname = System.getProperty("os.name");
if (osname.indexOf("Windows") != -1) {
filename = System.getProperty("USERPROFILE") + "/Application Data" + flashlog;
} else if (osname.indexOf("Mac OS") != -1) {
filename = System.getProperty("user.home") + "/Library/Preferences" + flashlog;
} else if (osname.indexOf("Unix") != -1 || osname.indexOf("Linux") != -1){
filename = System.getProperty("user.home") + "/.macromedia/Flash_Player/Logs/flashlog.txt";
} else {
filename = System.getProperty("USERPROFILE") + "/Application Data" + flashlog;
}