|
|
|
|
@ -384,12 +384,8 @@ void MainWindow::synopsis_show() {
|
|
|
|
|
int start_error = error_info;
|
|
|
|
|
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 = "su -l " + response_user + " -c \" DISPLAY=$DISPLAY " + cmd + " \"";
|
|
|
|
|
}
|
|
|
|
|
string response_user = getlogin();
|
|
|
|
|
cmd = "su -l " + response_user + " -c \" DISPLAY=$DISPLAY " + cmd + " \"";
|
|
|
|
|
}
|
|
|
|
|
wrapper_system(cmd, "&");
|
|
|
|
|
if (start_error != error_info) {
|
|
|
|
|
|