Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect parsing of nemo_action file #3486

Open
Cyborgscode opened this issue Nov 25, 2024 · 3 comments
Open

incorrect parsing of nemo_action file #3486

Cyborgscode opened this issue Nov 25, 2024 · 3 comments

Comments

@Cyborgscode
Copy link

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

@Cyborgscode
Copy link
Author

as soon as i changed the Execline to a sperate script in the same directory and switched to Exec=<script %F>... nemo accepts it again :( That's a waste of files ;)

@Cyborgscode
Copy link
Author

In case one needs to fix this:

$ cat encodexmbs.sh 
#!/bin/bash 

gnome-terminal -- sh encodexmbs.sh $1 "$2"

$ cat encode750kbs.nemo_action 
[Nemo Action]
Name=Encode to 750kb/s
Comment=Encode videofile to 750kb/s

Exec=<encodexmbs.sh 750 %F>


Icon-Name=soundconverter

Selection=Any
Separator=;

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

@mtwebster
Copy link
Member

You shouldn't need to specify gnome-terminal, try using Terminal=true. You might then get away with simply sh -c ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants