]> git.pld-linux.org Git - packages/xfce4-mount-plugin.git/blob - xfce4-mount-plugin-label-uuid.patch
9127cf9caa75624f8ceed1eeeafc8336a6e33ca3
[packages/xfce4-mount-plugin.git] / xfce4-mount-plugin-label-uuid.patch
1 --- xfce4-mount-plugin-0.5.5/panel-plugin/devices.c~    2010-11-13 20:45:44.969354996 +0100
2 +++ xfce4-mount-plugin-0.5.5/panel-plugin/devices.c     2010-11-13 21:02:11.907383494 +0100
3 @@ -354,7 +354,7 @@
4  
5          if (show_message_dialog && !eject && val == TRUE && exit_status == 0)
6              xfce_dialog_show_info (NULL, NULL, _("The device \"%s\" should be removable safely now."), pdisk->device);
7 -        if (show_message_dialog && disk_check_mounted(pdisk->device))
8 +        if (show_message_dialog && (disk_check_mounted(pdisk->device) || disk_check_mounted(pdisk->mount_point)))
9              xfce_dialog_show_error (NULL, NULL, _("An error occurred. The device \"%s\" should not be removed!"), pdisk->device);
10      }
11  }
12 @@ -400,7 +400,7 @@
13      for (pfstab = getfsent(); pfstab!=NULL; pfstab = getfsent())
14      {
15          has_valid_mount_device =
16 -                        g_str_has_prefix(pfstab->fs_spec, "/dev/") ||  g_str_has_prefix(pfstab->fs_spec, "UUID=");
17 +                        g_str_has_prefix(pfstab->fs_spec, "/dev/") || g_str_has_prefix(pfstab->fs_spec, "UUID=") || g_str_has_prefix(pfstab->fs_spec, "LABEL=");
18  
19          if (include_NFSs)
20              has_valid_mount_device = has_valid_mount_device |
This page took 0.098503 seconds and 2 git commands to generate.