|
|
|
|
@ -313,6 +313,11 @@ bool MainWindow::focus_in_txt_cmd(GdkEventFocus* event) {
|
|
|
|
|
|
|
|
|
|
void MainWindow::synopsis_show() {
|
|
|
|
|
string cmd = "xdg-open " + string(gettext("https://wiki.ublinux.com/ru/Программное_обеспечение/Программы_и_утилиты/Все/")) + app_name + " &";
|
|
|
|
|
if (geteuid() == 0) {
|
|
|
|
|
string response_user = getlogin();
|
|
|
|
|
cmd = "su -l " + response_user + " -c \" DISPLAY=$DISPLAY " + cmd + " \"";
|
|
|
|
|
}
|
|
|
|
|
cout << cmd << endl;
|
|
|
|
|
index_error = system(cmd.c_str());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|