diff options
Diffstat (limited to 'hardinfo2/arch')
| -rw-r--r-- | hardinfo2/arch/linux/common/samba.h | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/hardinfo2/arch/linux/common/samba.h b/hardinfo2/arch/linux/common/samba.h index 9e9d2458..7d835612 100644 --- a/hardinfo2/arch/linux/common/samba.h +++ b/hardinfo2/arch/linux/common/samba.h @@ -34,6 +34,7 @@ scan_samba(void)      if (g_file_get_contents("/etc/samba/smb.conf",                              &str, &length, NULL)) { +        shell_status_update("Scanning SAMBA shares...");          scan_samba_from_string(str, length);          g_free(str);                              } @@ -49,6 +50,8 @@ scan_samba_usershares(void)      if ((usershare_list = popen("net usershare list", "r"))) {          char buffer[512]; +        shell_status_update("Scanning SAMBA user shares..."); +                  while (fgets(buffer, 512, usershare_list)) {              gchar *usershare, *cmdline;              gsize length; @@ -64,6 +67,8 @@ scan_samba_usershares(void)              }              g_free(cmdline); +             +            shell_status_pulse();          }          pclose(usershare_list); @@ -93,6 +98,8 @@ scan_samba_from_string(gchar *str, gsize length)      groups = g_key_file_get_groups(keyfile, NULL);      while (groups[i]) { +        shell_status_pulse(); +          if (g_key_file_has_key(keyfile, groups[i], "path", NULL)) {              gchar *path = g_key_file_get_string(keyfile, groups[i], "path", NULL);              smb_shares_list = h_strdup_cprintf("%s=%s\n", | 
