<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Zar</title>
    <description>The latest articles on DEV Community by Zar (@pyonarch).</description>
    <link>https://dev.to/pyonarch</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3619189%2F01239a08-3bef-4980-996d-b8c01fbc6ccc.png</url>
      <title>DEV Community: Zar</title>
      <link>https://dev.to/pyonarch</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pyonarch"/>
    <language>en</language>
    <item>
      <title>Installing Google Antigravity on Arch (And Fixing That Annoying Login Loop)</title>
      <dc:creator>Zar</dc:creator>
      <pubDate>Wed, 19 Nov 2025 13:41:38 +0000</pubDate>
      <link>https://dev.to/pyonarch/installing-google-antigravity-on-arch-and-fixing-that-annoying-login-loop-4ji3</link>
      <guid>https://dev.to/pyonarch/installing-google-antigravity-on-arch-and-fixing-that-annoying-login-loop-4ji3</guid>
      <description>&lt;p&gt;Google just dropped &lt;strong&gt;Antigravity&lt;/strong&gt; (their new Gemini-powered IDE), and naturally, I wanted to try it immediately.&lt;/p&gt;

&lt;p&gt;If you're on Arch, you probably already tried &lt;code&gt;yay -S antigravity-bin&lt;/code&gt; and hit a wall of red text. Between the AUR servers getting hugged to death (Error 502) and the "Sign In" button refusing to actually sign you in, it's been a bit of a mess.&lt;/p&gt;

&lt;p&gt;I spent my morning figuring it out so you don't have to. Here is the proper way to get it installed and actually running.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 1: The "Lazy" Way (AUR Helper)
&lt;/h2&gt;

&lt;p&gt;If you are lucky and the servers are up, just run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;yay &lt;span class="nt"&gt;-S&lt;/span&gt; antigravity-bin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Method 2: The Git / Manual Method (Reliable)
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Use this if &lt;code&gt;yay&lt;/code&gt; is giving you timeouts or 502 errors.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If the AUR helpers are choking, the manual git method works best. This is what finally worked for me when the servers were struggling.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Clone the repository:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://aur.archlinux.org/antigravity-bin.git
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;&lt;em&gt;(Note: If the official AUR link is timing out, you can try finding a GitHub mirror, but usually &lt;code&gt;git&lt;/code&gt; handles the connection better than &lt;code&gt;yay&lt;/code&gt;)&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Enter the directory:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;antigravity-bin
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Build and Install:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;makepkg &lt;span class="nt"&gt;-si&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This pulls the &lt;code&gt;.deb&lt;/code&gt; directly from Google's servers and packages it locally, bypassing most of the AUR traffic issues.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Real Problem: Fixing the "Login Loop"
&lt;/h2&gt;

&lt;p&gt;Once installed, you’ll hit the main boss: &lt;strong&gt;The Login Screen.&lt;/strong&gt;&lt;br&gt;
You click "Sign in with Google," your browser opens, says "Success," and... the IDE just sits there waiting.&lt;/p&gt;

&lt;p&gt;This is because the app's desktop file is missing the link handler. &lt;strong&gt;Here is the fix:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open the desktop file:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;nano /usr/share/applications/antigravity.desktop
&lt;/code&gt;&lt;/pre&gt;




&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;Scroll to the bottom and add this line (or edit &lt;code&gt;MimeType&lt;/code&gt; if it exists):&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="py"&gt;MimeType&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;x-scheme-handler/antigravity;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;




&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;Save (&lt;code&gt;Ctrl+O&lt;/code&gt;, &lt;code&gt;Enter&lt;/code&gt;) and exit (&lt;code&gt;Ctrl+X&lt;/code&gt;), then update the database:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;update-desktop-database
&lt;/code&gt;&lt;/pre&gt;




&lt;/li&gt;

&lt;/ol&gt;

&lt;p&gt;Now, when you click Sign In, your browser should prompt you to "Open Antigravity," and you're in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Still stuck? (Manual Auth)
&lt;/h2&gt;

&lt;p&gt;If you're on a window manager like Hyprland/Sway and the redirect &lt;em&gt;still&lt;/em&gt; won't work:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Log in via browser until you see the "Success" page.&lt;/li&gt;
&lt;li&gt; Copy the URL from your address bar (starts with &lt;code&gt;antigravity://&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run this in your terminal:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;antigravity &lt;span class="s2"&gt;"PASTE_YOUR_URL_HERE"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Let me know in the comments if this worked for you!&lt;/p&gt;

</description>
      <category>archlinux</category>
      <category>antigravity</category>
      <category>github</category>
    </item>
  </channel>
</rss>
