|
|
|
@ -382,6 +382,14 @@ void MainWindow::event_zone() {
|
|
|
|
void MainWindow::synopsis_show() {
|
|
|
|
void MainWindow::synopsis_show() {
|
|
|
|
int start_error = error_info;
|
|
|
|
int start_error = error_info;
|
|
|
|
string cmd = "xdg-open " + string(_("https://wiki.ublinux.com/ru/Программное_обеспечение/Программы_и_утилиты/Все/")) + app_name;
|
|
|
|
string cmd = "xdg-open " + string(_("https://wiki.ublinux.com/ru/Программное_обеспечение/Программы_и_утилиты/Все/")) + app_name;
|
|
|
|
|
|
|
|
if (geteuid() == 0) {
|
|
|
|
|
|
|
|
string response_user = this->call("who");
|
|
|
|
|
|
|
|
size_t index = response_user.find(" ");
|
|
|
|
|
|
|
|
if (index != std::string::npos){
|
|
|
|
|
|
|
|
response_user = response_user.substr(0, index);
|
|
|
|
|
|
|
|
cmd = "sudo -u " + response_user + " " + cmd + " ";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
wrapper_system(cmd, "&");
|
|
|
|
wrapper_system(cmd, "&");
|
|
|
|
if (start_error != error_info) {
|
|
|
|
if (start_error != error_info) {
|
|
|
|
error_info = start_error;
|
|
|
|
error_info = start_error;
|
|
|
|
|