diff -Nur gnome-mount-0.5/gnome-mount.schemas.in gnome-mount-0.5.new/gnome-mount.schemas.in --- gnome-mount-0.5/gnome-mount.schemas.in 2007-01-07 23:06:24.000000000 +0100 +++ gnome-mount-0.5.new/gnome-mount.schemas.in 2007-01-07 23:08:04.000000000 +0100 @@ -48,6 +48,30 @@ A list of default mount options for volumes formatted with the ntfs file system. + + + /schemas/system/storage/default_options/ntfs-3g/mount_options + /system/storage/default_options/ntfs-3g/mount_options + list + string + [locale=] + + Default mount options for ntfs-3g fs + A list of default mount options for volumes formatted with the ntfs file system using ntfs-3g. + + + + + /schemas/system/storage/default_options/ntfs-fuse/mount_options + /system/storage/default_options/ntfs-fuse/mount_options + list + string + [locale=,uid=,umask=077] + + Default mount options for ntfs-fuse fs + A list of default mount options for volumes formatted with the ntfs file system using ntfs-fuse. + + diff -Nur gnome-mount-0.5/src/gnome-mount.c gnome-mount-0.5.new/src/gnome-mount.c --- gnome-mount-0.5/src/gnome-mount.c 2007-01-07 23:06:53.000000000 +0100 +++ gnome-mount-0.5.new/src/gnome-mount.c 2007-01-07 23:09:13.000000000 +0100 @@ -1408,6 +1408,11 @@ g_free (option); option = g_strdup_printf ("uid=%u", getuid ()); } + /* use the same kind of workaround for the "locale=" option (use by ntfs-3g and ntfs-fuse) */ + if (strcmp (option, "locale=") == 0) { + g_free (option); + option = g_strdup_printf ("locale=%s", setlocale( LC_ALL, "" )); + } g_ptr_array_add (mount_options, option); g_slist_free_1 (l);