|
|
|
|
@ -5,6 +5,7 @@ const string path_app = "/usr/bin/";
|
|
|
|
|
const string path_glade = "/usr/share/ublexec/ui/ublexec.glade";
|
|
|
|
|
const string path_css = "/usr/share/ublexec/css/ublexec.css";
|
|
|
|
|
const string app_name = "ublexec";
|
|
|
|
|
int flag_prog_file = 0;
|
|
|
|
|
string name_app_cmd = "";
|
|
|
|
|
string version_application = "2.23";
|
|
|
|
|
const string path_img_head_background = "/usr/share/ublexec/images/logo-background.png";
|
|
|
|
|
@ -415,7 +416,13 @@ void MainWindow::unselect_icon(Gtk::IconView *icon_entry) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::settings() {
|
|
|
|
|
user_cmd = name_app_cmd;
|
|
|
|
|
if (flag_prog_file == 1){
|
|
|
|
|
user_cmd = name_app_cmd;
|
|
|
|
|
}
|
|
|
|
|
if (flag_prog_file == 2){
|
|
|
|
|
path_file = name_app_cmd;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this->pars_apps();
|
|
|
|
|
this->get_builder();
|
|
|
|
|
this->event();
|
|
|
|
|
@ -967,6 +974,14 @@ SettingsPlug::SettingsPlug(::Window p_socketID, Glib::RefPtr<Gtk::Builder> build
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void help() {
|
|
|
|
|
string help = "GTK \"Run applications as another user with the specified priority\" for UBLinux\n\n"
|
|
|
|
|
"Usage: ublexec [OPTIONS...]\n"
|
|
|
|
|
"Options:\n"
|
|
|
|
|
" -h, --help Show this help\n"
|
|
|
|
|
" -V, --version Show package version\n"
|
|
|
|
|
" -x APP_NAME Running the program\n"
|
|
|
|
|
" -e FILE_NAME Running the file\n";
|
|
|
|
|
cout << gettext(help.c_str());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|