<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Gnome on brege.org</title>
    <link>https://brege.org/tags/gnome/</link>
    <description>Recent content in Gnome on brege.org</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>Copyright (c) 2016-2026 Wyatt Brege</copyright>
    <lastBuildDate>Sun, 29 Mar 2026 17:53:43 -0400</lastBuildDate>
    <atom:link href="https://brege.org/tags/gnome/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Adding desktop entries in GNOME 3</title>
      <link>https://brege.org/post/adding-desktop-entries-in-gnome-3/</link>
      <pubDate>Mon, 17 Oct 2016 20:28:15 +0000</pubDate>
      <guid>https://brege.org/post/adding-desktop-entries-in-gnome-3/</guid>
      <description>&lt;p&gt;Firefox Developer Edition has newer features than what was available from my distribution&amp;rsquo;s package manager (&lt;a href=&#34;https://getfedora.org&#34;&gt;Fedora&lt;/a&gt;).  Whereas I&amp;rsquo;ve been using it as my daily driver, I&amp;rsquo;ve had to do so through a terminal to launch it.  With an alias in my &lt;code&gt;~/.bashrc&lt;/code&gt; such as&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;dfox&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;~/Preview/firefox-developer/firefox --profile ~/.mozilla/firefox/7ahl24yk.default/&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I was able to launch Firefox Developer quickly enough.  Unfortunately, I found it annoying that I couldn&amp;rsquo;t just type [Super Key] + &amp;ldquo;Fire&amp;rdquo; in GNOME and be on my way to browsing the web.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Firefox Developer Edition has newer features than what was available from my distribution&rsquo;s package manager (<a href="https://getfedora.org">Fedora</a>).  Whereas I&rsquo;ve been using it as my daily driver, I&rsquo;ve had to do so through a terminal to launch it.  With an alias in my <code>~/.bashrc</code> such as</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nv">dfox</span><span class="o">=</span><span class="s2">&#34;~/Preview/firefox-developer/firefox --profile ~/.mozilla/firefox/7ahl24yk.default/&#39;
</span></span></span></code></pre></div><p>I was able to launch Firefox Developer quickly enough.  Unfortunately, I found it annoying that I couldn&rsquo;t just type [Super Key] + &ldquo;Fire&rdquo; in GNOME and be on my way to browsing the web.</p>
<h2 id="adding-a-launcher-icon-for-firefox-developer">Adding a launcher icon for Firefox Developer</h2>
<p>I wanted to add a desktop entry/launcher icon for Firefox Developer.  I searched and found the Alacarte package, which is the GUI-way of doing this.  Alas, adding entries in Alacarte led to the following problem:</p>
<p><strong>Problem 1:</strong> Alacarte didn&rsquo;t allow me to actually click &ldquo;OK&rdquo;.  Both with the version from the Fedora repositories, <code>alacarte-3.11.91-4.fc24</code> via <code>sudo dnf install alacarte</code>, as well as a version built from source, <code>1bb265f7</code> via <code>git clone git://git.gnome.org/alacarte</code>, did I have these issues.</p>
<figure>
    <img loading="lazy" src="img/alacarte-disabled-ok-button.png"/> 
</figure>

<p><strong>Solution:</strong> Create the .desktop file by hand.  (Also, probably submit a bug report.)</p>
<p>In <code>~/.local/share/applications/firefox.desktop</code>, I added the following lines:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-ini" data-lang="ini"><span class="line"><span class="cl"><span class="k">[Desktop Entry]</span>
</span></span><span class="line"><span class="cl"><span class="na">Comment</span><span class="o">=</span><span class="s">Browse the World Wide Web</span>
</span></span><span class="line"><span class="cl"><span class="na">Terminal</span><span class="o">=</span><span class="s">false</span>
</span></span><span class="line"><span class="cl"><span class="na">Name</span><span class="o">=</span><span class="s">Firefox Developer Browser</span>
</span></span><span class="line"><span class="cl"><span class="na">Exec</span><span class="o">=</span><span class="s">~/Preview/firefox-developer/firefox --profile ~/.mozilla/firefox/xxxxxxxx.default %U</span>
</span></span><span class="line"><span class="cl"><span class="na">Type</span><span class="o">=</span><span class="s">Application</span>
</span></span><span class="line"><span class="cl"><span class="na">Icon</span><span class="o">=</span><span class="s">~/Preview/firefox-developer/browser/icons/mozicon128.png</span>
</span></span><span class="line"><span class="cl"><span class="na">Categories</span><span class="o">=</span><span class="s">Network;</span>
</span></span></code></pre></div><p>where <code>xxxxxxxx.default</code> is my default profile directory. My starting point was browsing a few .desktop files in <code>~/.local/share/applications/</code> (user installed applications) and <code>/usr/share/applications/</code> (system-wide applications), for reference.</p>
<p>I ran into an issue, however:</p>
<p><strong>Problem 2:</strong> If I added Firefox to my Favorites (the dock on the left where openened and manually added applications sit), I would get a duplicated menu entry.</p>
<p><strong>Solution:</strong> Add <code>StartupWMClass=Firefox</code> to <code>~/.local/share/applications/firefox.desktop</code></p>
<p>I came acrossed a proper solution <a href="https://askubuntu.com/questions/403766/duplicate-icons-for-manully-created-gnome-launcher-items#635839">here</a>.  In short, I fired up Firefox Developer, ran <code>xprop WM_CLASS</code> in the terminal, clicked the Firefox window, and added the entry to <code>firefox.desktop</code></p>
<p>My final file looks like this:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-ini" data-lang="ini"><span class="line"><span class="cl"><span class="k">[Desktop Entry]</span>
</span></span><span class="line"><span class="cl"><span class="na">Comment</span><span class="o">=</span><span class="s">Browse the World Wide Web</span>
</span></span><span class="line"><span class="cl"><span class="na">Terminal</span><span class="o">=</span><span class="s">false</span>
</span></span><span class="line"><span class="cl"><span class="na">Name</span><span class="o">=</span><span class="s">Firefox Developer Browser</span>
</span></span><span class="line"><span class="cl"><span class="na">Exec</span><span class="o">=</span><span class="s">~/Preview/firefox-developer/firefox --profile ~/.mozilla/firefox/xxxxxxxx.default %U</span>
</span></span><span class="line"><span class="cl"><span class="na">Type</span><span class="o">=</span><span class="s">Application</span>
</span></span><span class="line"><span class="cl"><span class="na">Icon</span><span class="o">=</span><span class="s">~/Preview/firefox-developer/browser/icons/mozicon128.png</span>
</span></span><span class="line"><span class="cl"><span class="na">Categories</span><span class="o">=</span><span class="s">Network;</span>
</span></span><span class="line"><span class="cl"><span class="na">StartupWMClass</span><span class="o">=</span><span class="s">Firefox</span>
</span></span></code></pre></div><h2 id="exercise---repeating-the-process-for-earlybird-thunderbird-alpha">Exercise - Repeating the process for Earlybird (Thunderbird Alpha)</h2>
<ol>
<li>Go to the <a href="https://www.mozilla.org/en-US/thunderbird/channel/">Thunderbird Release Channel</a> and grab the package for Earlybird (or the the Beta, if you choose):
<figure>
        <img loading="lazy" src="img/thunderbird-release-channel.png"/> 
    </figure>

Or, from the command line:
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> ~/Preview<span class="sb">`</span>
</span></span><span class="line"><span class="cl">wget https://ftp.mozilla.org/pub/thunderbird/nightly/latest-comm-aurora/thunderbird-51.0a2.en-US.linux-x86_64.tar.bz2<span class="sb">`</span>
</span></span><span class="line"><span class="cl">tar -xvf thunderbird-51.0a2.en-US.linux-x86_64.tar.bz2 -C thunderbird
</span></span></code></pre></div></li>
</ol>
<p>If you use Thunderbird already, determine your profile: <code>ls ~/.thunderbird/*.default</code></p>
<ol start="2">
<li>Create the desktop entry, <code>~/.local/share/applications/thunderbird.desktop</code>, with the following contents:</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-ini" data-lang="ini"><span class="line"><span class="cl"><span class="k">[Desktop Entry]</span>
</span></span><span class="line"><span class="cl"><span class="na">Name</span><span class="o">=</span><span class="s">Thunderbird</span>
</span></span><span class="line"><span class="cl"><span class="na">Comment</span><span class="o">=</span><span class="s">Send and receive mail with Thunderbird</span>
</span></span><span class="line"><span class="cl"><span class="na">Type</span><span class="o">=</span><span class="s">Application</span>
</span></span><span class="line"><span class="cl"><span class="na">Exec</span><span class="o">=</span><span class="s">~/Preview/thunderbird/thunderbird --profile ~/.thunderbird/xxxxxxxx.default %u</span>
</span></span><span class="line"><span class="cl"><span class="na">Icon</span><span class="o">=</span><span class="s">~/Preview/thunderbird/chrome/icons/default/default256.png</span>
</span></span><span class="line"><span class="cl"><span class="na">Categories</span><span class="o">=</span><span class="s">Network;</span>
</span></span><span class="line"><span class="cl"><span class="na">StartupWMClass</span><span class="o">=</span><span class="s">Thunderbird</span>
</span></span></code></pre></div><p>Replace <code>xxxxxxxx.default</code> with your profile.</p>
<figure>
    <img loading="lazy" src="img/thunderbird-launcher.png"/> 
</figure>

<p>For any other application like this, I would just copy <code>firefox.desktop</code> to <code>myapplication.desktop</code> and adjust the contents to suit your needs.  Then, in general, launch the application and run <code>xprop WM_CLASS</code> to determine the value to put in the <code>StartupWMClass=</code> field.</p>]]></content:encoded>
    </item>
  </channel>
</rss>
