Ubuntu 24.04 - Upgrading to Antigravity 2.0 and Antigravity IDE

lost a couple of token, i ran antigravity ide 2.x then told it to add it self to add to launcher, but it works, download it manually, then ran antigravity on bin folder, then i ask how to add it next time if i want to add it my self

Here is how you can create and register a desktop launcher from the terminal next time:

Step 1: Create the .desktop file

Run the following command to create and write the launcher configuration to your local applications folder:

cat << 'EOF' > ~/.local/share/applications/antigravity-ide.desktop
[Desktop Entry]
Name=Antigravity IDE
Comment=Antigravity IDE v2.0 - Experience liftoff
GenericName=IDE
Exec="/home/USERNAME/Downloads/Antigravity-x64/antigravity" %F
Icon=antigravity
Type=Application
Terminal=false
StartupNotify=true
StartupWMClass=Antigravity
Categories=Development;IDE;TextEditor;
MimeType=application/x-antigravity-workspace;
EOF

Step 2: Make the launcher executable (Optional but recommended)

Ensure the desktop manager has permissions to launch it:

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

Step 3: Refresh the launcher database

Run this to force the desktop environment to scan for the new launcher immediately:

update-desktop-database ~/.local/share/applications

Key Desktop Entry Fields Explained:

  • Exec: The absolute path to the executable, such as [antigravity](file:///home/USERNAME/Downloads/Antigravity-x64/antigravity). The %F argument allows you to open dropped files/folders in the IDE.
  • Icon: The system icon name or absolute path to an image (e.g., /usr/share/pixmaps/antigravity.png).
  • StartupWMClass: Groups open windows under the correct launcher icon in your dock/taskbar rather than spawning a generic or separate window group.