linuxmint / linuxmint/nemo

Inconsistent lock icon display when enabling/disabling permissions

Open
#3,783 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
1.6k
Forks
368
Avg merge
4d 4h
Merged PRs (30d)
2

Description

Distribution

Mint 22.3

Package version

nemo 6.6.3

Frequency

Always

Bug description

A file (current.png) is marked as read-only (all Write permissions unchecked) but does not display the lock icon. Checking the file actually shows as no write permissions enabled. If I copy and paste the file, the new copy also does not show the lock icon and it also shows no write permissions.

In contrast, another file (scenario.png) correctly displays the lock icon. But, oddly, when I copy and paste it the new copy does show the lock icon but it not carry the permissions; i.e., the new file has write-user and write-group enabled.

I'm not sure what is the correct behavior regarding the copy of the file (keep permissions or not) but it is not consistent and the missing lock icon is just strange.

The two .png were created from a screen shot so are just normal images. The two .xlsx were downloaded from a site and are just regular sheets.

Steps to reproduce

I copied four files into a folder. I then selected all four, right-clicked and unchecked write-group and write-user; then clicked close.
Image

I noted that "current.png" did not display the expected lock icon while the other three did.
Image

Investigating, I found the lock icon appears or not in conjunction with the write-owner setting.
Image

Despite having no lock icon, "current.png" does show write-user and write-group as disabled.
Image

The same as "scenario.png" which does display the lock.
Image

When I copy "scenario.png" and paste it (creating "scenario (copy).png") it shows that the permissions have been reset to default; i.e., write-user and write-group are enabled.
Image

When I do the same with "current.png" (creating "current (copy).png") it also does not show the lock but it does retain the permissions were retained; i.e., write-user and write-group are retained.
Image

Expected behavior

I would expect the lock to appear consistently in conjunction with the write-user setting. I'm not sure why this file, filename, position, something is different.

Additional information

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in Nemo 6.6.3 on Mint 22.3 using the four files described, then compare the lock icon with the write-owner permission before and after copying each file. Investigate the code paths responsible for permission display and file copying. Done means the lock icon is consistent with the write permission and copy behavior is consistent for these files.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.