mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-23 09:03:23 -05:00
Even more stuff added, a result of staying up too late.
This commit is contained in:
parent
beef95464b
commit
9269b71379
11
gBootRoot
11
gBootRoot
@ -1073,14 +1073,21 @@ sub uml_box {
|
|||||||
my $pid;
|
my $pid;
|
||||||
if ($entry_advanced[8] &&
|
if ($entry_advanced[8] &&
|
||||||
$entry_advanced[10]) {
|
$entry_advanced[10]) {
|
||||||
# Check to see if it is an executable
|
# Check to see if it actually exists
|
||||||
my $executable = (split(/\s+/,$entry_advanced[8]))[0];
|
my $executable = (split(/\s+/,$entry_advanced[8]))[0];
|
||||||
if (!find_file_in_path($executable)) {
|
if (!find_file_in_path(basename($executable))) {
|
||||||
error_window("gBootRoot Error: " .
|
error_window("gBootRoot Error: " .
|
||||||
"Enter a valid xterm, and " .
|
"Enter a valid xterm, and " .
|
||||||
"executable option.");
|
"executable option.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ($executable =~ m,/,) {
|
||||||
|
if (! -e $executable) {
|
||||||
|
error_window("gBootRoot Error: " .
|
||||||
|
"Enter a valid path for the xterm.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
unless ($pid = fork) {
|
unless ($pid = fork) {
|
||||||
unless (fork) {
|
unless (fork) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user