linuxmint / linuxmint/nemo

incorrect parsing of nemo_action file

Open
#3,486 4 comments 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

Fedora 40

Package version

6.2.8

Frequency

Always

Bug description

This is a Regression, as those files worked before!

(nemo:175450): Nemo-WARNING **: 18:45:48.500: An action definition requires, at minimum, Name, Exec and Selection fields, and either an Extensions or Mimetypes field.
Check the /home/<user>/.local/share/nemo/actions/encode750kbs.nemo_action file for missing fields.

So .. NAME, EXEC, SELECTION and EXTENSIONS is the required minimum.

That's the file:

[Nemo Action]
Name=Encode to 750kb/s
Comment=Encode videofile to 750kb/s

Exec=gnome-terminal -x sh -c "encode750kbs.sh \"%F\""

Icon-Name=soundconverter

Selection=Any
Separator=;

#Extensions=mp4;
Extensions=m4a;mp4;avi;webm;ogg;ogv;mkv

Another nemo_action file with exact these fields works without an error:

[Nemo Action]
Name=Play 3D Video
Comment=Spiele Videos in 3D ab.

#Exec=echo "%F" >> /tmp/print.log
#Exec=gnome-terminal -x sh -c "echo %F | less"
Exec=<play3d.sh %F>


Icon-Name=soundconverter

Selection=Any
Separator=;

Extensions=m4a;mp4;avi;webm;ogg;ogv;oga;wav;mkv

Steps to reproduce

start nemo in debug mode

Expected behavior

acceptance or a detailed error message whats missing or is wrong.

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 warning in debug mode with /home//.local/share/nemo/actions/encode750kbs.nemo_action, then compare it with the working Play 3D Video action file shown in the report. Trace Nemo's action-file parsing and determine why the required fields are rejected; done means the file is accepted or the error identifies the actual missing or invalid field.

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
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.