Убрал не нужные функции

pull/11/head
Igor Belitskiy 3 years ago
parent 646ab2f2d3
commit 085c66ec44

@ -166,33 +166,4 @@ vector <string> pars_users() {
return vec_users;
}
string read_passwd(string username) {
string passwd = "";
std::string line;
std::ifstream in("/etc/shadow");
if (in.is_open()) {
while (getline(in, line)) {
if (line.find(username) != string::npos) {
size_t index_start = line.find(":");
if (index_start != string::npos) {
size_t index_end = line.find(":", index_start + 1);
passwd = line.substr(index_start+1, index_end - index_start-1);
break;
}
}
}
}
in.close();
return passwd;
}
int synopsis_show(string str_link) {
// gettext("https://wiki.ublinux.com/ru/Программное_обеспечениерограммы_и_утилиты/Все/")
string cmd = "xdg-open " + str_link;
if (geteuid() == 0) {
string response_user = getlogin();
cmd = "su -l " + response_user + " -c \" DISPLAY=$DISPLAY " + cmd + " \"";
}
return system(cmd.c_str());
}
}

@ -1468,6 +1468,7 @@ specified priority</property>
<object class="GtkHeaderBar" id="SettingsBar">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="show-close-button">True</property>
<child type="title">
<object class="GtkLabel" id="lblwebHeaderName">
<property name="visible">True</property>

Loading…
Cancel
Save