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

Nemo actions stopped working when \" in action Exec field #3500

Open
brunetton opened this issue Dec 13, 2024 · 1 comment
Open

Nemo actions stopped working when \" in action Exec field #3500

brunetton opened this issue Dec 13, 2024 · 1 comment

Comments

@brunetton
Copy link

Distribution

Ubuntu 24.04 (Noble)

Package version

nemo 6.0.2

Frequency

Always

Bug description

I wrote a bunch of actions I'm using very often, available here but recently most of them stopped working.

In logs I can see bunch of messages saying that fields are missing:

** (nemo:731988): WARNING **: 00:56:04.183: An action definition requires, at minimum, a Label field, an Exec field, a Selection field, and an either an Extensions or Mimetypes field.
Check the /home/bruno/.local/share/nemo/actions/image-resize-2000.nemo_action file for missing fields.

By the way, reading this message I understand that a field named Label is required, that is false as the field name for the name is Name.

Steps to reproduce

After some search I've found that the problem is when I'm using \" in Exec field. Example (in This action):

Exec=bash -c "ln -s \"%F\" ~/Public"

So to reproduce, define this simple action:

[Nemo Action]

Name=Share in Public
Exec=bash -c "ln -s \"%F\" ~/Public"
Selection=single
Extensions=any

Restart Nemo in debug mode and look at logs, you'll see this error.

Expected behavior

The action should be parsed and working, as it has always been the case.

The action is accepted if I remove the \ that protects the double quotes:

Exec=bash -c "ln -s "%F" ~/Public"

But in this case ln do not receive the quotes, and if there are spaces in path, this doesn't works.

Did I missed some changes ? Or is this a bug ?

Thank you

Additional information

No response

@brunetton
Copy link
Author

brunetton commented Jan 13, 2025

Anyone ? @mtwebster are you still using nemo extensions ? You helped me a lot in #2274 🙏

I really miss my extensions !

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

1 participant