Skip to content

New Action: Open in Antigravity - #750

Open
Dhananjayyy wants to merge 1 commit into
linuxmint:masterfrom
Dhananjayyy:master
Open

New Action: Open in Antigravity#750
Dhananjayyy wants to merge 1 commit into
linuxmint:masterfrom
Dhananjayyy:master

Conversation

@Dhananjayyy

Copy link
Copy Markdown

Hi,

This PR adds a new action "Open in Antigravity" for the Google Antigravity IDE.

UUID: open-in-antigravity@Dhananjayyy

I have validated the spice using ./validate-spice and tested it locally.
It includes the required file structure, icon, and translation template.

@mtwebster

Copy link
Copy Markdown
Member

/review-action

@mtwebster

Copy link
Copy Markdown
Member

Nemo Action Review

Now I have all the information needed. Here is the comprehensive review:


PR #750 Review: "New Action: Open in Antigravity"

Google Antigravity IS a real product — it's an AI-powered IDE announced in November 2025 alongside Gemini 3. However, this PR has a critical correctness issue and several other problems.


BLOCKER

Wrong CLI command name

The action uses Exec=antigravity %F, but the Google Antigravity IDE's command-line tool is agy, not antigravity. This means the action would fail on every invocation — the user would get an error like antigravity: command not found. The Dependencies field would also need to reference agy.


IMPORTANT

EscapeSpaces=true combined with Quote=double causes double-escaping

Using both together is incorrect. With Quote=double, Nemo wraps the expanded path in double quotes — e.g., "/path/with spaces". If EscapeSpaces=true is also active, Nemo first escapes spaces with backslashes, then wraps in quotes, producing "/path/with\ spaces". Inside double quotes, a backslash before a space is not a shell escape character, so the shell receives the literal path path/with\ spaces (with backslash), which will not match the real file. Drop EscapeSpaces=trueQuote=double alone is sufficient and correct.

Missing Dependencies field

Without Dependencies=agy;, the action will always appear in the context menu even when Google Antigravity is not installed. When clicked, it will fail silently or show a generic error. Adding the dependency lets Nemo silently suppress the action at load time when the tool isn't present.


MINOR

Selection=any includes zero-selection state

Selection=any causes the action to appear even when right-clicking on the file manager background with no files selected, in which case %F may be empty or expand to the current directory. For an "Open in IDE" action, Selection=notnone (one or more directories) is more appropriate.

Missing newline at end of files

open-in-antigravity@Dhananjayyy.nemo_action.in, info.json, metadata.json, and README.md all lack a trailing newline. This is a Unix file convention and will cause \ No newline at end of file warnings in diffs.


Suggested .nemo_action.in

[Nemo Action]
_Name=Open in Antigravity
_Comment=Open folder in Google Antigravity IDE
Exec=agy %F
Icon-Name=antigravity
Selection=notnone
Extensions=dir;
Dependencies=agy;
Quote=double

Summary

Severity Issue
BLOCKER Wrong CLI command — antigravity should be agy
IMPORTANT EscapeSpaces=true + Quote=double double-escapes paths
IMPORTANT Missing Dependencies=agy;
MINOR Selection=any should be Selection=notnone
MINOR Missing trailing newlines in all text files

The structure, i18n template, icon, and metadata are all correctly set up — the action just needs the command name corrected and a few field fixes before it's ready to merge.

Sources:


Automated review of 37b6c70 — last updated 2026-02-21 20:56 UTC

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

Successfully merging this pull request may close these issues.

2 participants