linuxmint / linuxmint/nemo

Nemo is changing file content and filetype on rename, if the file originally had the .theme type

Open
#3,457 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Distribution

Ubuntu 24.04.1 LTS

Package version

6.0.2

Frequency

Always

Bug description

Nemo is changing file content and filetype on rename, if the file originally had the .theme type.

Steps to reproduce
  1. In Nemo create a new file empty.theme
  2. Rename it to renamed.theme

Bug:

  1. The real file extension is now 'renamed.theme.desktop' and Nemo changes the file content to:
    [Desktop Entry]
    Name[hu]=renamed.theme
  2. Nemo hides the .desktop extension, so it's hard to notice
  3. Nemo changed the files contents without telling me

This caused me tons of problems when trying to create themes for xfce4-terminal (.theme files). Nemo invalidated my files by changing their type, and inserting new lines.

Expected behavior
  1. In Nemo create a new file empty.theme
  2. Rename it to renamed.theme

Expected behavior:
The file is renamed without any side-effects.

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

Reproduce the rename sequence in Nemo on Ubuntu 24.04.1 with an empty.theme file, then trace the file-type detection and rename handling involved. Done means renaming empty.theme to renamed.theme preserves the .theme filename and file contents without creating a hidden .desktop extension.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.