diff options
author | marcus <marcus@FreeBSD.org> | 2002-09-10 20:41:18 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2002-09-10 20:41:18 +0000 |
commit | f9fbfd4db2fbaeff5e484b5332ee21e9f64d47db (patch) | |
tree | 3a67bda1e26dffbbd13761a976b4f3bfa424c1fa /x11-fm/nautilus2 | |
parent | ad6d3150d062262f2cfa644073b356b4efea5542 (diff) | |
download | FreeBSD-ports-f9fbfd4db2fbaeff5e484b5332ee21e9f64d47db.zip FreeBSD-ports-f9fbfd4db2fbaeff5e484b5332ee21e9f64d47db.tar.gz |
Complete the removable media patch as was done in nautilus.
Diffstat (limited to 'x11-fm/nautilus2')
-rw-r--r-- | x11-fm/nautilus2/Makefile | 2 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c | 27 |
2 files changed, 23 insertions, 6 deletions
diff --git a/x11-fm/nautilus2/Makefile b/x11-fm/nautilus2/Makefile index ac26107..2df134b 100644 --- a/x11-fm/nautilus2/Makefile +++ b/x11-fm/nautilus2/Makefile @@ -7,7 +7,7 @@ PORTNAME= nautilus2 PORTVERSION= 2.0.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11-fm gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= 2.0.1/sources/${PORTNAME:S/2$//} diff --git a/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c b/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c index a2faedc..cedcf1a7 100644 --- a/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c +++ b/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c @@ -1,8 +1,5 @@ - -$FreeBSD$ - ---- libnautilus-private/nautilus-volume-monitor.c.orig Wed Aug 28 16:37:20 2002 -+++ libnautilus-private/nautilus-volume-monitor.c Tue Sep 10 01:42:20 2002 +--- libnautilus-private/nautilus-volume-monitor.c.orig Wed Aug 28 09:37:20 2002 ++++ libnautilus-private/nautilus-volume-monitor.c Tue Sep 10 16:37:32 2002 @@ -59,6 +59,18 @@ #include <sys/types.h> #include <unistd.h> @@ -190,3 +187,23 @@ $FreeBSD$ /* These are set up by get_current_mount_list for Solaris. */ volume->is_removable = volume_is_removable (volume); #endif +@@ -1794,7 +1850,7 @@ + ok = mount_volume_auto_add (volume); + } else if (strcmp (file_system_type_name, "cdda") == 0) { + ok = mount_volume_cdda_add (volume); +- } else if (strcmp (file_system_type_name, "iso9660") == 0) { ++ } else if (strcmp (file_system_type_name, "cd9660") == 0) { + ok = mount_volume_iso9660_add (volume); + } else if (strcmp (file_system_type_name, "nfs") == 0) { + ok = mount_volume_nfs_add (volume); +@@ -1823,8 +1879,8 @@ + } + + /* Identify device type */ +- if (eel_str_has_prefix (volume->mount_path, "/mnt/")) { +- name = volume->mount_path + strlen ("/mnt/"); ++ if (eel_str_has_prefix (volume->mount_path, "/")) { ++ name = volume->mount_path + strlen ("/"); + + if (eel_str_has_prefix (name, "cdrom") + || eel_str_has_prefix (name, "burn")) { |