diff --git a/#ublexec.glade# b/#ublexec.glade#
new file mode 100644
index 0000000..c247cbf
--- /dev/null
+++ b/#ublexec.glade#
@@ -0,0 +1,1940 @@
+
+
+
+
+
+
+
+ -20
+ 19
+ 1
+ 10
+
+
+
+ True
+ False
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ gtk-media-play
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ False
+
+
+ True
+ False
+ vertical
+
+
+ True
+ False
+
+
+ True
+ False
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ 69
+ ublexec
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ False
+ start
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ Running applications as a user with a
+specified priority
+
+
+
+
+
+
+
+ True
+ True
+ 1
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ False
+ vertical
+
+
+ True
+ False
+ vertical
+
+
+ True
+ False
+ vertical
+
+
+ True
+ False
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ 0.019999999552965164
+ in
+
+
+ True
+ False
+ 5
+ 5
+ vertical
+
+
+ True
+ False
+
+
+ 145
+ True
+ False
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ Team
+ True
+ 0
+
+
+ False
+ True
+ 0
+
+
+
+
+ 330
+ True
+ True
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+
+
+ True
+ True
+ 1
+
+
+
+
+ True
+ True
+ True
+ end
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+
+
+ True
+ False
+ center
+ center
+ 5
+ 5
+ 5
+ 5
+ 3
+ 3
+ gtk-directory
+
+
+
+
+ False
+ True
+ 2
+
+
+
+
+ True
+ True
+ True
+ end
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+
+
+ True
+ False
+ center
+ center
+ 5
+ 5
+ 5
+ 5
+ edit-select-all
+
+
+
+
+ False
+ True
+ 3
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ False
+ 6
+ 6
+
+
+ 131
+ True
+ False
+ 15
+ 5
+ 15
+ 5
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ True
+ False
+ start
+ center
+ 5
+ 5
+ 5
+ 5
+ 6
+ True
+
+
+ True
+ False
+ Run in the terminal emulator
+
+
+
+
+ False
+ True
+ 1
+
+
+
+
+ False
+ True
+ 1
+
+
+
+
+
+
+ True
+ False
+ Command Line
+
+
+
+
+ True
+ True
+ 0
+
+
+
+
+ False
+ True
+ 1
+
+
+
+
+ True
+ False
+ 5
+ vertical
+
+
+ True
+ False
+ 5
+ 5
+ 5
+ 5
+ 0.019999999552965164
+ in
+
+
+ True
+ False
+ 5
+ 5
+ vertical
+
+
+ True
+ False
+
+
+ True
+ True
+ False
+ start
+ center
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ True
+
+
+ True
+ False
+ Run as another user
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ pkexec
+ True
+ True
+ False
+ True
+ rbSu
+
+
+ False
+ True
+ 1
+
+
+
+
+ su
+ True
+ True
+ False
+ True
+ rbPkexec
+
+
+ False
+ True
+ 2
+
+
+
+
+ sudo
+ True
+ True
+ False
+ True
+ rbSu
+
+
+ False
+ True
+ 3
+
+
+
+
+ 95
+ True
+ False
+ end
+ 15
+ 5
+ 15
+ 5
+
+
+ False
+ True
+ 4
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ False
+
+
+ 145
+ True
+ False
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ User Name
+ True
+ 0
+
+
+ False
+ True
+ 0
+
+
+
+
+ 330
+ True
+ False
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+
+
+ False
+ True
+ 1
+
+
+
+
+ False
+ True
+ 1
+
+
+
+
+
+
+ True
+ False
+ User
+
+
+
+
+ True
+ True
+ 0
+
+
+
+
+ False
+ True
+ 2
+
+
+
+
+ True
+ False
+ 5
+ vertical
+
+
+ True
+ False
+ 5
+ 5
+ 5
+ 5
+ 0.019999999552965164
+ in
+
+
+ True
+ False
+ 5
+ 5
+ vertical
+
+
+ True
+ True
+ False
+ start
+ center
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ True
+
+
+ True
+ False
+ Change startup priority
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ False
+
+
+ 5
+ True
+ False
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ Priority
+ True
+ 0
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ True
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ adjustment1
+ 20
+ 0
+ 0
+
+
+ True
+ True
+ 1
+
+
+
+
+ True
+ True
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ True
+
+
+ False
+ True
+ 2
+
+
+
+
+ False
+ True
+ 1
+
+
+
+
+ True
+ False
+
+
+ 65
+ True
+ False
+ 15
+ 5
+ 15
+ 5
+ 0
+
+
+ False
+ True
+ 0
+
+
+
+
+ 145
+ True
+ False
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ 19 (Low)
+ True
+ 0
+
+
+ False
+ True
+ 1
+
+
+
+
+ True
+ False
+ end
+ center
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ -20 (High)
+ True
+ 0
+
+
+ True
+ True
+ 3
+
+
+
+
+ 95
+ True
+ False
+ end
+ 15
+ 5
+ 15
+ 5
+
+
+ False
+ True
+ 4
+
+
+
+
+ False
+ True
+ 2
+
+
+
+
+
+
+ True
+ False
+ Priority
+
+
+
+
+ True
+ True
+ 0
+
+
+
+
+ False
+ True
+ 3
+
+
+
+
+ Run
+ True
+ True
+ True
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ image1
+ True
+
+
+ False
+ True
+ 4
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ False
+ True
+ 2
+
+
+
+
+
+
+
+
+
+ False
+ Внимание!
+ dialog
+
+
+ False
+ vertical
+ 2
+
+
+ False
+ True
+ end
+
+
+
+
+
+ ОК
+ True
+ True
+ True
+
+
+ True
+ True
+ 1
+
+
+
+
+ False
+ False
+ 0
+
+
+
+
+ True
+ False
+ 10
+ 10
+ 15
+ Select an executable file or program
+
+
+ True
+ True
+ 2
+
+
+
+
+
+
+ False
+ Пожалуйста выберите Файл
+ True
+ center
+ 500
+ 400
+ True
+ dialog
+ True
+ True
+
+
+ False
+ vertical
+ 2
+
+
+ False
+ end
+
+
+ gtk-cancel
+ True
+ True
+ True
+ True
+
+
+ True
+ True
+ 0
+
+
+
+
+ gtk-ok
+ True
+ True
+ True
+ True
+
+
+ True
+ True
+ 1
+
+
+
+
+ False
+ False
+ 0
+
+
+
+
+
+
+
+
+
diff --git a/source/ublexec.cc b/source/ublexec.cc
index a9f5906..538d7a8 100644
--- a/source/ublexec.cc
+++ b/source/ublexec.cc
@@ -303,6 +303,7 @@ void MainWindow::tempate_icon_select(Gtk::IconView *icon, Glib::RefPtrset_text(name_app);
+ this->denamic_cmd();
break;
}
}
@@ -508,18 +509,21 @@ string MainWindow::start_cmd(string user_cmd) {
}
string cmd = "";
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) {
- 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) {
- 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) {
cmd+=" \"";
}
+ cmd = "nohup " + cmd;
cmd += " > /dev/null 2>&1";
+ //string str_remove = " ";
+ //this->str_remove(cmd, str_remove);
return cmd;
}