Saturday, October 10, 2026

How to Create Launchers for Google Antigravity and Antigravity IDE in Ubuntu

If you are developing with Google’s new agentic AI ecosystem on Linux, you have likely explored both Google Antigravity (the standalone desktop application powered by Electron) and Google Antigravity IDE (the AI-first IDE built on VS Code).

Unlike standard .deb packages or Snap store installations, the Linux distributions are provided as standalone tar archives that you extract directly into your user home folder (e.g., ~/GoogleAntigravity/). While you can run them directly from terminal commands or the file manager, they lack native desktop integration out of the box:

  • They do not appear in the Ubuntu Application Overview / Dash.
  • They do not have distinct, high-res application icons in the Ubuntu Dock.
  • GNOME Shell might show a generic gear icon or unlinked window when they run.
  • Desktop shortcuts may show a generic text icon and refuse to launch due to untrusted metadata.
  • Worst of all: launching either binary for the first time often crashes immediately with a cryptic chrome-sandbox permissions error!

In this tutorial, we will walk through the entire setup: downloading the packages, fixing the critical chrome-sandbox issue step-by-step, and creating FreeDesktop-compliant desktop launchers and icons on Ubuntu (including 24.04 and 26.04 LTS).


1. Downloading & Extracting Antigravity

Before creating the launchers, obtain the latest Linux packages from the official portal:

1. Download Packages:

  • Head over to https://antigravity.google and download:
    • Google Antigravity (Antigravity.tar.gz) — Standalone Agent desktop app.
    • Google Antigravity IDE (Antigravity IDE.tar.gz) — VS Code-based agentic IDE.
  • Grab the official high-resolution branding logo (Google-Antigravity-Icon-Full-Color.png) from the branding assets or documentation resources.

2. Extract to Your Directory:

Create a dedicated folder in your home directory and extract the tar archives:

mkdir -p ~/GoogleAntigravity
cd ~/GoogleAntigravity

# Extract Antigravity (App)
tar -xzf ~/Downloads/Antigravity.tar.gz

# Extract Antigravity IDE
tar -xzf ~/Downloads/"Antigravity IDE.tar.gz"

This creates two working directories:

  • ~/GoogleAntigravity/Antigravity/Antigravity-x64/
  • ~/GoogleAntigravity/AntigravityIDE/

2. The Critical Step Most People Miss: Configuring chrome-sandbox

This is the #1 pitfall where many developers get stuck, frustrated, and give up.

The Fatal Error

If you try to launch either application immediately after extraction:

~/GoogleAntigravity/Antigravity/Antigravity-x64/antigravity

You will likely encounter this abort message:

[ERROR:zygote_host_impl_linux.cc] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that chrome-sandbox is owned by root and has mode 4755.

Why Does This Happen?

Both applications are built on the Chromium/Electron runtime. For process isolation and security, Chromium requires a privileged helper called chrome-sandbox. Because the archive was extracted as a regular user, chrome-sandbox belongs to your normal user account and lacks the SUID (Set User ID) permission. Without root ownership and 4755 permissions, Chromium cannot isolate its renderer processes and halts immediately.

Caution: Do not resort to running with --no-sandbox. While it bypasses the error, it disables Chromium's sandboxing defenses entirely. The clean, safe fix is configuring the sandbox binary properly.

Step-by-Step Fix

Run the following commands in your terminal to grant proper ownership and permissions to the sandbox helpers in both applications:

For Google Antigravity (App):

sudo chown root:root ~/GoogleAntigravity/Antigravity/Antigravity-x64/chrome-sandbox
sudo chmod 4755 ~/GoogleAntigravity/Antigravity/Antigravity-x64/chrome-sandbox

For Google Antigravity IDE:

sudo chown root:root ~/GoogleAntigravity/AntigravityIDE/chrome-sandbox
sudo chmod 4755 ~/GoogleAntigravity/AntigravityIDE/chrome-sandbox

Verify Permissions:

ls -l ~/GoogleAntigravity/Antigravity/Antigravity-x64/chrome-sandbox ~/GoogleAntigravity/AntigravityIDE/chrome-sandbox

Both should display -rwsr-xr-x with root root ownership:

-rwsr-xr-x 1 root root 15232 ... Antigravity-x64/chrome-sandbox
-rwsr-xr-x 1 root root 15328 ... AntigravityIDE/chrome-sandbox

Notice the s in -rwsr-xr-x — this confirms the SUID bit is properly active!


3. Overview of the Two Flavors

Now that both binaries run smoothly, note the key differences between them:

  1. Google Antigravity (App)
    • Binary: ~/GoogleAntigravity/Antigravity/Antigravity-x64/antigravity
    • Role: Standalone desktop app for orchestrating background agents, conversations, and workflows.
    • WM Class / Wayland App ID: antigravity
    • Icon: Multi-color gradient crest (Google-Antigravity-Icon-Full-Color.png).
  2. Google Antigravity IDE
    • Binary: ~/GoogleAntigravity/AntigravityIDE/antigravity-ide (or launcher script bin/antigravity-ide)
    • Role: AI-first coding IDE with code lenses, inline autocomplete, and workspace agent features.
    • WM Class / Wayland App ID: antigravity-ide
    • Icon: Dedicated dark code-grid icon located at resources/app/resources/linux/code.png.

4. Setting Up Application Icons

Ubuntu adheres to the XDG icon specification. Placing your icons in ~/.local/share/icons/ makes them globally accessible to your user session without requiring root privileges.

1. Create the local icon directory:

mkdir -p ~/.local/share/icons/hicolor/512x512/apps

2. Set up the Antigravity App Icon:

Copy your downloaded high-resolution brand asset:

cp ~/Downloads/Google-Antigravity-Icon-Full-Color.png ~/.local/share/icons/antigravity.png
cp ~/Downloads/Google-Antigravity-Icon-Full-Color.png ~/.local/share/icons/hicolor/512x512/apps/antigravity.png

3. Set up the Antigravity IDE Icon:

The IDE already ships with its dedicated dark code-grid icon bundled directly within its package:

cp ~/GoogleAntigravity/AntigravityIDE/resources/app/resources/linux/code.png ~/.local/share/icons/antigravity-ide.png
cp ~/GoogleAntigravity/AntigravityIDE/resources/app/resources/linux/code.png ~/.local/share/icons/hicolor/512x512/apps/antigravity-ide.png

5. Creating the Desktop Launchers

Placing .desktop files in ~/.local/share/applications/ automatically registers them in GNOME Shell, the Application menu, and the Ubuntu Dock.

1. Launcher for Google Antigravity (Desktop App):

Create ~/.local/share/applications/antigravity.desktop:

[Desktop Entry]
Version=1.0
Type=Application
Name=Google Antigravity
GenericName=AI Development Environment
Comment=Google Antigravity - Agentic AI Development Platform
Exec=/home/crysanthus/GoogleAntigravity/Antigravity/Antigravity-x64/antigravity %U
Icon=/home/crysanthus/.local/share/icons/antigravity.png
Path=/home/crysanthus/GoogleAntigravity/Antigravity/Antigravity-x64
Terminal=false
StartupNotify=true
StartupWMClass=antigravity
Categories=Development;
Keywords=Google;Antigravity;AI;Agent;Gemini;Code;
MimeType=x-scheme-handler/antigravity;
Why StartupWMClass matters: On GNOME Shell (both Wayland and X11), StartupWMClass binds the running process window to the launcher. Without this property, clicking the dock icon launches the window, but GNOME treats the running window as a separate unknown application with a generic icon.

2. Launcher for Google Antigravity IDE:

Create ~/.local/share/applications/antigravity-ide.desktop:

[Desktop Entry]
Version=1.0
Type=Application
Name=Google Antigravity IDE
GenericName=Code Editor
Comment=Antigravity IDE - AI-first Integrated Development Environment
Exec=/home/crysanthus/GoogleAntigravity/AntigravityIDE/antigravity-ide %F
Icon=/home/crysanthus/GoogleAntigravity/AntigravityIDE/resources/app/resources/linux/code.png
Path=/home/crysanthus/GoogleAntigravity/AntigravityIDE
Terminal=false
StartupNotify=true
StartupWMClass=antigravity-ide
Categories=Development;
MimeType=text/plain;inode/directory;
Keywords=google;antigravity;ide;editor;code;development;
Actions=new-empty-window;

[Desktop Action new-empty-window]
Name=New Empty Window
Exec=/home/crysanthus/GoogleAntigravity/AntigravityIDE/antigravity-ide --new-window %F
Icon=/home/crysanthus/GoogleAntigravity/AntigravityIDE/resources/app/resources/linux/code.png

6. Desktop Shortcuts & Trusting Them

To place shortcuts on your desktop canvas (~/Desktop):

cp ~/.local/share/applications/antigravity.desktop ~/Desktop/
cp ~/.local/share/applications/antigravity-ide.desktop ~/Desktop/
chmod +x ~/.local/share/applications/antigravity*.desktop
chmod +x ~/Desktop/antigravity*.desktop

Modern Ubuntu uses the Desktop Icons NG (DING) extension. Desktop shortcuts are untrusted until marked:

gio set ~/Desktop/antigravity.desktop metadata::trusted true
gio set ~/Desktop/antigravity-ide.desktop metadata::trusted true

(Alternatively, right-click each desktop icon and select "Allow Launching").


7. Updating Caches and Pinning to Dock

Refresh the application database and icon caches:

update-desktop-database ~/.local/share/applications
gtk-update-icon-cache -f ~/.local/share/icons/hicolor 2>/dev/null

You can pin them to the Ubuntu Dock either by searching in Activities and clicking "Pin to Dash", or from the terminal:

python3 -c "import subprocess, ast; favs = ast.literal_eval(subprocess.check_output(['gsettings', 'get', 'org.gnome.shell', 'favorite-apps'], text=True).strip()); [favs.append(a) for a in ['antigravity.desktop', 'antigravity-ide.desktop'] if a not in favs]; subprocess.run(['gsettings', 'set', 'org.gnome.shell', 'favorite-apps', str(favs).replace('"', '\'')])"

8. Bonus: Command-Line Symlinks

To launch either application straight from your terminal or scripts, add symlinks in ~/.local/bin/:

mkdir -p ~/.local/bin
ln -sf ~/GoogleAntigravity/Antigravity/Antigravity-x64/antigravity ~/.local/bin/antigravity
ln -sf ~/GoogleAntigravity/AntigravityIDE/bin/antigravity-ide ~/.local/bin/antigravity-ide

Now you can open any repository or project folder directly:

antigravity-ide ~/projects/my-awesome-agent

Conclusion

With these steps, you avoid the frustrating chrome-sandbox permission block and ensure both Google Antigravity and Antigravity IDE integrate seamlessly into Ubuntu with native dock grouping, crisp high-DPI icons, desktop launching, and CLI shortcuts. Happy coding with AI agents!

No comments: