Haven't quite figured this one out yet, since GTK+ is not familiar
territory for me. However, I found the code snippet that operates the
button: it's the "apply_recursive_clicked" function in nautilus-
properties-window.c. The for loop in lines 4344-4371 may be the trouble
spot, but I'm not sure:
/* Advanced mode and execute checkbox: */
for (l = window->details->permission_buttons; l != NULL; l = l->next) {
button = l->data;
if (gtk_toggle_button_get_inconsistent (GTK_TOGGLE_BUTTON (button))) {
continue;
}
active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button));
p = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (button),
"permission"));
is_folder = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (button),
"is-folder"));
is_special = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (button),
"is-special"));
if (is_folder || is_special) {
dir_permission_mask |= p;
if (active) {
dir_permission |= p;
}
}
if (!is_folder || is_special) {
file_permission_mask |= p;
if (active) {
file_permission |= p;
}
}
}
You can see where is_folder and is_special (which are gboolean
variables) are assigned values, integers are being passed into a boolean
variable. I'm seeing similar lines of code in other parts of this file,
but I'm not sure if this is correct or not.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/822993
Title:
Applying Permissions to enclosed files in Nautilus' Folder Properties
window doesn't work
Status in Nautilus:
New
Status in “nautilus” package in Ubuntu:
Triaged
Bug description:
To reproduce, gksudo nautilus to get root permissions, find a folder
with files inside. Right click the folder and choose properties, go
onto the permissions tab and change the owner and group to something
else, eg to ubuntu if root, or root if ubuntu. Click the 'Apply perms
to enclosed files' option and then close the window. Wait a bit before
closing it if you wish, but when you go into that folder and check the
permissions of the files inside, they will not have changed.
I noticed this when copying my firefox profile from my main partition
onto my live USB of the daily build.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nautilus/+bug/822993/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp