[PATCH] Desktop icons show lock symbol (#141390)



I've attached a small patch to bug 141390:
<snip>
Desktop icon files get created with user & group = root and permissions
of 446 by default. If you're in the root group, Nautilus will determine
that the file belongs to your group, see that you don't have write
access via the group and show the lock accordingly. If you're root
itself, it works because Nautilus assumes that root is almighty anyway.
This patch provides group write permissions for desktop icon files by default,
which makes the locks go away.
</snip>

Martin

Index: libnautilus-private/nautilus-desktop-icon-file.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-desktop-icon-file.c,v
retrieving revision 1.4
diff -u -p -r1.4 nautilus-desktop-icon-file.c
--- libnautilus-private/nautilus-desktop-icon-file.c	6 Nov 2003 16:07:01 -0000	1.4
+++ libnautilus-private/nautilus-desktop-icon-file.c	16 May 2004 01:45:17 -0000
@@ -201,6 +201,7 @@ update_info_from_link (NautilusDesktopIc
 	file_info->size = 0;
 	file_info->permissions =
 		GNOME_VFS_PERM_OTHER_WRITE |
+		GNOME_VFS_PERM_GROUP_WRITE |
 		GNOME_VFS_PERM_USER_READ |
 		GNOME_VFS_PERM_OTHER_READ |
 		GNOME_VFS_PERM_GROUP_READ;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]