diff --git a/source/ublexec.cc b/source/ublexec.cc index 9d14402..e35d82c 100644 --- a/source/ublexec.cc +++ b/source/ublexec.cc @@ -139,6 +139,11 @@ void MainWindow::add_CSS() { } void MainWindow::localization() { + time_t now = time(0); + tm *ltm = localtime(&now); + unsigned int year= 1900+ ltm->tm_year; + string str_authors = string(_("Copyright © UBSoft LLC, 2022 - ")) + to_string(year); + aboutWindows->set_copyright(str_authors); aboutWindows->set_website(_("https://wiki.ublinux.com")); btnSynopsis->set_label(_("Help")); btnAbout->set_label(_("About the program")); @@ -460,7 +465,7 @@ vector MainWindow::find_all(string &text, string &word) { void MainWindow::tempalte_row(string Name, string Exec, string path , Glib::RefPtr &dtk_list) { Gtk::TreeModel::Row row = *(dtk_list->append()); - string s_remove[] = {".png", ".jpg", ".jpeg", ".svg"}; + string s_remove[] = {".png", ".jpg", ".jpeg", ".svg", ".xpm"}; string str_search = "/"; if (path.find(str_search) != string::npos){ vector list_index = this->find_all(path, str_search); @@ -479,7 +484,6 @@ void MainWindow::tempalte_row(string Name, string Exec, string path , Glib::Ref str_remove(path, del); } } - row[m_Columns.m_col_filename] = path; row[m_Columns.m_col_description] = Name; row[m_Columns.icon_name] = path; @@ -575,7 +579,7 @@ string MainWindow::start_cmd(string user_cmd) { str_variants_root = "sudo -u " + cmbUser->get_active_text() + " "; } if (cbxExecuteEpriority->get_active()) { - str_variants_root += " nice -n " + to_string(spinPriority->get_value_as_int()) + " "; + str_variants_root += "nice -n " + to_string(spinPriority->get_value_as_int()) + " "; } } } @@ -586,7 +590,7 @@ string MainWindow::start_cmd(string user_cmd) { system(user_cmd_X.c_str()); } if ((cbxExecuteEpriority->get_active()) && (chbAnotherUser->get_active() == false)) { - str_nice_cmd = " nice -n " + to_string(spinPriority->get_value_as_int()) + " "; + str_nice_cmd = "nice -n " + to_string(spinPriority->get_value_as_int()) + " "; } if (user_cmd.length() == 0 && name_app.length() == 0 && path_file.length() == 0) { messageError->show(); diff --git a/ublexec.glade b/ublexec.glade index deacc94..a3fd013 100644 --- a/ublexec.glade +++ b/ublexec.glade @@ -16,10 +16,10 @@ ubl-settings-datetime dialog True - ublexec + ubl-exec 1.0 - Copyright © 2023 - UBSoft Software LLC - Setting the date and time + Copyright © UBSoft LLC, 2022 - + ublexec https://ublinux.ru/ Project Home Page Это приложение распространяется без каких-либо гарантий. @@ -1085,7 +1085,6 @@ specified priority True False - baseline 5 5 5 @@ -1128,7 +1127,7 @@ specified priority - 330 + 320 True True 5 @@ -1307,7 +1306,6 @@ specified priority True False - baseline 5 5 5 @@ -1449,7 +1447,7 @@ specified priority - 330 + 320 True False 5 @@ -1465,6 +1463,19 @@ specified priority 1 + + + 0 + True + False + 100 + + + False + True + 2 + + False @@ -1506,11 +1517,11 @@ specified priority True False - baseline 5 5 5 5 + True 0.019999999552965164 in @@ -1575,6 +1586,7 @@ specified priority + -1 True True 5 @@ -1719,7 +1731,7 @@ specified priority - True + False True 0 @@ -1827,14 +1839,6 @@ specified priority - - - - - - - - False Внимание! diff --git a/ublexec_ru.po b/ublexec_ru.po index e7d4acf..fad35bd 100644 --- a/ublexec_ru.po +++ b/ublexec_ru.po @@ -123,3 +123,9 @@ msgstr "Внимание!" msgid "ublexec" msgstr "Выполнить" + +msgid "ubl-exec" +msgstr "ubl-exec" + +msgid "Copyright © UBSoft LLC, 2022 - " +msgstr "Авторские права © ООО \"Юбисофт\", 2022 - " \ No newline at end of file