vncserver: extract ForgetSelectedDe()

This commit is contained in:
Dmitry Maksyoma 2021-09-09 20:46:49 +12:00
parent 71c420fc86
commit f999acc490

View File

@ -727,11 +727,14 @@ sub AskUserToChooseDeOrManualXstartup {
return;
}
unlink $de_was_selected_file;
&ForgetSelectedDe();
system($selectDeCmd) == 0 || die("Failed to execute $selectDeCmd\n");
}
sub ForgetSelectedDe {
unlink $de_was_selected_file;
}
sub DetectDisplayNumberFromCliArgs {
if (@ARGV == 0) {
return;