Исправлена действие на кнопке справка

pull/28/head
Igor Belitskiy 3 years ago
parent 216ad6ac8d
commit c48f53507b

@ -313,6 +313,11 @@ bool MainWindow::focus_in_txt_cmd(GdkEventFocus* event) {
void MainWindow::synopsis_show() { void MainWindow::synopsis_show() {
string cmd = "xdg-open " + string(gettext("https://wiki.ublinux.com/ru/Программное_обеспечениерограммы_и_утилиты/Все/")) + app_name + " &"; 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()); index_error = system(cmd.c_str());
} }

@ -1000,7 +1000,7 @@
<object class="GtkMenuItem" id="btnSynopsis"> <object class="GtkMenuItem" id="btnSynopsis">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="label" translatable="yes">Synopsis</property> <property name="label" translatable="yes">Help</property>
<style> <style>
<class name="menuitemtop"/> <class name="menuitemtop"/>
</style> </style>

Loading…
Cancel
Save