I want to ask the user to select their USB drive by typing the mount location. For some reason that does not work and just skips over the user input part.
void writeusb() {
writeln("Here is a list of your mounted drives: ");
auto mounts = executeShell("cat /proc/mounts | grep media");
writeln(mounts.output);
writef("Type the path to your USB drive: ");
string cont = readln;
writeln(a);
writeln("A file selection menu will now appear so you can select an ISO to write.");
auto seliso = executeShell("zenity --file-selection");
writeln(seliso.output);
}
I am clueless as to what I need to do here? Can anyone help?