Started adding bash commands to the GUI. Replaced the code I'd used earlier with something else because the first option wasn't working with "sudo" but now the new option isn't working with "sudo" either. Have been trying to work around it (in sudoers) or disable sudo, but not really getting anywhere.
I'd also like to combine the file-reading methods, but the code that differentiates them is all in try-catch blocks, and the methods are pretty small as is. Don't know if it would really save anything, though it would be cleaner to read; that alone might make it worthwhile.