|
|
|
@ -303,6 +303,7 @@ void MainWindow::tempate_icon_select(Gtk::IconView *icon, Glib::RefPtr<Gtk::List
|
|
|
|
str_remove(name_app, del_sim);
|
|
|
|
str_remove(name_app, del_sim);
|
|
|
|
if (name_app.length() != len_name_app) {
|
|
|
|
if (name_app.length() != len_name_app) {
|
|
|
|
txtCmd->set_text(name_app);
|
|
|
|
txtCmd->set_text(name_app);
|
|
|
|
|
|
|
|
this->denamic_cmd();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -508,18 +509,21 @@ string MainWindow::start_cmd(string user_cmd) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
string cmd = "";
|
|
|
|
string cmd = "";
|
|
|
|
if (path_file.length() > 0) {
|
|
|
|
if (path_file.length() > 0) {
|
|
|
|
cmd = "nohup " + 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 = "nohup " + str_nice_cmd + str_cmd_terminal + str_variants_root + name_app;
|
|
|
|
cmd = str_nice_cmd + str_cmd_terminal + str_variants_root + name_app;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (user_cmd.length() > 0) {
|
|
|
|
else if (user_cmd.length() > 0) {
|
|
|
|
cmd = "nohup " + str_nice_cmd + str_cmd_terminal + str_variants_root + " " + user_cmd;
|
|
|
|
cmd = str_nice_cmd + str_cmd_terminal + str_variants_root + " " + user_cmd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (cmd.find("-e su ") != string::npos) {
|
|
|
|
if (cmd.find("-e su ") != string::npos) {
|
|
|
|
cmd+=" \"";
|
|
|
|
cmd+=" \"";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
cmd = "nohup " + cmd;
|
|
|
|
cmd += " > /dev/null 2>&1";
|
|
|
|
cmd += " > /dev/null 2>&1";
|
|
|
|
|
|
|
|
//string str_remove = " ";
|
|
|
|
|
|
|
|
//this->str_remove(cmd, str_remove);
|
|
|
|
return cmd;
|
|
|
|
return cmd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|