Antigravity 2.0/IDEを、アプリアイコンが表示されるようにUbuntuデスクトップ環境へインストールする方法

Page content
展開すれば一応動くだろうけれども
もうかなり前の話になるが、2026年5月のGoogle I/O 2026では、「Google Antigravity」のProductsが4つ発表された。人間が直接操作するアプリケーションとしては、Antigravity SDKを除く次の3つである。
この3つを、自分が扱うデスクトップ環境へ導入する際に知ったこと。macOS環境においては一般的なインストール操作で何も困ることはなかった。他方、Ubuntuデスクトップ環境において、GUIアプリである※印のAntigravity 2.0とAntigravity IDEを、アプリアイコンが表示される通常アプリケーションとして利用できるようにするためには、一手間掛ける必要がある。その手順をメモしておこうと思う。
ちなみに、Ubuntu用はtar.gzで配布されているAntigravity 2.0とAntigravity IDEの、更新・バージョンアップ作業は、インストールと同様に手動で行うことになる。その際にも下記の手順の一部が役に立つ。
Antigravity 2.0のインストール手順
以下は、Antigravity 2.0 (x64版) をUbuntu環境の全ユーザ向けのアプリとして導入する前提で進めている。
- 公式サイトから
Antigravity.tar.gzをダウンロードして、展開し、/opt/Antigravity/Antigravity-x64/...というpathに保存する$ sudo mkdir -p /opt/Antigravity/ $ sudo tar xvzf ~/Downloads/Antigravity.tar.gz -C /opt/Antigravity/ # /opt/Antigravity/Antigravity-x64/に保存される
- 次の内容のファイルを
/usr/share/applications/antigravity.desktopとして保存する[Desktop Entry] Name=Antigravity Comment=Antigravity - Agentic Desktop Application #Exec="/opt/Antigravity/Antigravity-x64/antigravity" %U Exec="/opt/Antigravity/Antigravity-x64/antigravity" --no-sandbox %U Icon=/opt/Antigravity/Antigravity-x64/resources/icon.png Type=Application Terminal=false Categories=Development; StartupNotify=true StartupWMClass=Antigravity MimeType=x-scheme-handler/antigravity;text/html;--no-sandboxに関して注意: Ubuntu 24.04 (今回の私の環境) ではAppArmorのセキュリティ仕様により、未登録バイナリでの「非特権ユーザー名前空間 (Unprivileged User Namespaces)」の使用が制限されている- 手っ取り早く動かすなら、上記の通り
--no-sandboxを付加する - 正式な制限回避方法は、
/etc/apparmor.d/にAppArmorプロファイルを作成して登録すること
- 手っ取り早く動かすなら、上記の通り
- アイコンを抽出する
$ cd /opt/Antigravity/Antigravity-x64/resources/ && sudo npx -y asar extract-file /opt/Antigravity/Antigravity-x64/resources/app.asar icon.png
- desktopファイルを検証した後に適用する
$ sudo desktop-file-validate /usr/share/applications/antigravity.desktop $ sudo update-desktop-database /usr/share/applications/
バージョンアップ手順
- 既存のディレクトリをいったん削除して、最新版のアーカイブを展開する
$ sudo rm -rf /opt/Antigravity/Antigravity-x64/ $ sudo tar xvzf ~/Downloads/Antigravity.tar.gz -C /opt/Antigravity/
- インストール手順の3,4を行う
Antigravity IDEのインストール手順
以下は、Antigravity IDE (x64版) を全ユーザ向けのアプリとして導入する前提で進めている。
- 公式サイトから
Antigravity IDE.tar.gzをダウンロードして、展開し、/opt/Antigravity IDE/...というpathに保存する$ sudo tar xvzf ~/Downloads/Antigravity\ IDE.tar.gz -C /opt/ # /opt/Antigravity IDE/に保存される
- 次の内容のファイルを
/usr/share/applications/antigravity-ide.desktopとして保存する[Desktop Entry] Name=Antigravity IDE Comment=Antigravity - Agentic Integrated Development Environment #Exec="/opt/Antigravity IDE/antigravity-ide" %U Exec="/opt/Antigravity IDE/antigravity-ide" --no-sandbox %U Icon=/opt/Antigravity IDE/resources/app/resources/linux/code.png Type=Application Terminal=false Categories=Development;IDE; StartupNotify=true StartupWMClass=Antigravity IDE MimeType=application/x-antigravity-workspace;--no-sandboxに関して注意: 上記のAntigravity 2.0と同様です。
- desktopファイルを検証した後に適用する
$ sudo desktop-file-validate /usr/share/applications/antigravity-ide.desktop $ sudo update-desktop-database /usr/share/applications/
バージョンアップ手順
- 既存のディレクトリをいったん削除して、最新版のアーカイブを展開する
$ sudo rm -rf /opt/Antigravity\ IDE/ $ sudo tar xvzf ~/Downloads/Antigravity\ IDE.tar.gz -C /opt/
- インストール手順の3を行う

