|
|
|
@ -629,8 +629,14 @@ string MainWindow::start_cmd(string user_cmd) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
string cmd = "";
|
|
|
|
string cmd = "";
|
|
|
|
if (path_file.length() > 0) {
|
|
|
|
if (path_file.length() > 0) {
|
|
|
|
|
|
|
|
if (access(path_file.c_str(), X_OK) != -1) {
|
|
|
|
|
|
|
|
cmd = str_nice_cmd + str_cmd_terminal + str_variants_root + " " + path_file;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
cmd = str_nice_cmd + str_cmd_terminal + str_variants_root + " xdg-open '" + path_file + "' ";
|
|
|
|
cmd = str_nice_cmd + str_cmd_terminal + str_variants_root + " xdg-open '" + path_file + "' ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (name_app.length() > 0) {
|
|
|
|
else if (name_app.length() > 0) {
|
|
|
|
cmd = str_nice_cmd + str_cmd_terminal + str_variants_root + name_app;
|
|
|
|
cmd = str_nice_cmd + str_cmd_terminal + str_variants_root + name_app;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|