Make file executable in File class


#1

There is no way to make a file executable on linux, if you create a new file then the umask setting makes the file without the X attribute and you can’t launch it with the File class, i think it might be useful to have some control over the executable bit on linux/osx (perhaps mix it with file attributes on windows)


#2

Fair point, I’ll add something that when I get a moment. In the meantime, I guess it’s pretty easy just to add a quick call to whatever the unix function is to do it though.


#3

yeah i did it just wanted to mention that would be nice

							#ifdef LINUX
								chmod (File::getSpecialLocation(File::currentExecutableFile).getFullPathName().toUTF8(), S_IROTH|S_IRGRP|S_IRWXU);
							#endif