<p></p>
<blockquote>
<p>So $datadir will change depending on $prefix.</p>
</blockquote>
<p>Yep, but desktop files are in fixed locations defined in $XDG_DATA_DIRS so unless thats updated to point to wherever $prefix/share/applications says to install it, the desktop file won't be found, its just lucky your install location is in your $XDG_DATA_DIRS, ~/.local is not in mine for eg.  (that was the point <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/b4n/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/b4n">@b4n</a> made)</p>
<blockquote>
<blockquote>
<p>Just a query, shouldn't it be called org.geany.Geany.desktop?</p>
</blockquote>
</blockquote>
<blockquote>
<p>I see that format used in appdata files, but I don't see any desktop files with that filename.</p>
</blockquote>
<p>Sorry should have put the reference, the <a href="https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.1.html" rel="nofollow">desktop file spec</a> says "For applications, the part of the name of the desktop file (before the .desktop) should follow the "reverse DNS" convention, e.g. org.example.FooViewer.desktop."</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2728#issuecomment-761708104">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2RDHPPG2WC6OI3IZTS2IZANANCNFSM4WEW67UQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ2UN534D42GYQUICPTS2IZANA5CNFSM4WEW67U2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFVTL4SA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2728#issuecomment-761708104",
"url": "https://github.com/geany/geany/pull/2728#issuecomment-761708104",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>