After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698955 - must click checkbox twice when setting execute permission on multiple files
must click checkbox twice when setting execute permission on multiple files
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File Properties Dialog
3.22.x
Other Linux
: Normal minor
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 762655 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-04-26 14:30 UTC by Adam Dingle
Modified: 2017-04-01 07:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
properties-window: fix checking inconsistent state (1.18 KB, patch)
2016-11-25 15:04 UTC, Alexandru Pandelea
committed Details | Review

Description Adam Dingle 2013-04-26 14:30:02 UTC
I'm running Nautilus, GTK and GLib from git master.

Here's an oddity:

1. Create two text files.
2. Select them both in Nautilus, then right click and choose Properties.
3. Go to the Permissions tab.
4. Click the Execute checkbox.  It will change to show a horizontal line inside it.
5. From a terminal window, run 'ls -l' on the two files.  They are not executable.
6. Click the checkbox again.  Now it will display a check mark.
7. From the terminal, run 'ls -l' again.  They are now executable.

The permissions should change on the first click.
Comment 1 Alexandre Franke 2016-11-24 19:54:15 UTC
*** Bug 762655 has been marked as a duplicate of this bug. ***
Comment 2 Alexandru Pandelea 2016-11-25 15:04:21 UTC
Created attachment 340762 [details] [review]
properties-window: fix checking inconsistent state

In the function initial_permission_state_consistent, when the check was
made to see if the files have the same permissions, the check was not
correct.

To fix this, also do & between the first_permissions and the mask.
Comment 3 Carlos Soriano 2016-11-25 18:18:39 UTC
Review of attachment 340762 [details] [review]:

perfect, thanks!
Comment 4 Alexandru Pandelea 2016-11-27 12:24:59 UTC
Attachment 340762 [details] pushed as 3759585 - properties-window: fix checking inconsistent state
Comment 5 Rahmadani Bayu Aji 2017-04-01 07:09:40 UTC
(In reply to Adam Dingle from comment #0)
> I'm running Nautilus, GTK and GLib from git master.
> 
> Here's an oddity:
> 
> 1. Create two text files.
> 2. Select them both in Nautilus, then right click and choose Properties.
> 3. Go to the Permissions tab.
> 4. Click the Execute checkbox.  It will change to show a horizontal line
> inside it.
> 5. From a terminal window, run 'ls -l' on the two files.  They are not
> executable.
> 6. Click the checkbox again.  Now it will display a check mark.
> 7. From the terminal, run 'ls -l' again.  They are now executable.
> 
> The permissions should change on the first click.