Snap doesn't create `.desktop` files for installed applications.

Bug #2037178 reported by `{third: "Beedell", first: "Roke"}`{.JSON5}
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
New
Undecided
Unassigned

Bug Description

**https://forum.snapcraft.io/t/snap-doesnt-create-desktop-files-for-installed-applications/36987?u=beedellrokejulianloc**

<blockQuote>

I've installed

```log
snap install --channel=latest/edge code-insiders --classic
snap install --channel=latest/edge firefox
```

...but neither were added to `$PATH`:

```sh
powershell-preview
```

<blockQuote>

```log
PS /home/RokeJulianLockhart> pwsh-preview
pwsh-preview: The term 'pwsh-preview' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
```

</blockQuote>

```sh
powershell-preview
```

<blockQuote>

```log
PS /home/RokeJulianLockhart> powershell-preview
powershell-preview: The term 'powershell-preview' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
```

</blockQuote>

...nor had `.desktop` files created for them:

Despite the presence of

```pwsh
Get-ChildItem -LiteralPath '/usr/share/applications' | Select-String 'firefox'
```

it outputs

<blockQuote>

```log
PS /home/RokeJulianLockhart> Get-ChildItem -LiteralPath '/usr/share/applications' | Select-String 'firefox'

/usr/share/applications/gnome-mimeapps.list:16:application/rdf+xml=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:17:application/rss+xml=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:109:application/x-xpinstall=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:113:application/xhtml+xml=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:114:application/xml=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:197:image/gif=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:201:image/jpeg=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:208:image/png=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:266:text/html=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:276:text/xml=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:296:video/webm=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:325:x-scheme-handler/chrome=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:326:x-scheme-handler/ftp=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:329:x-scheme-handler/http=firefox_firefox.desktop
/usr/share/applications/gnome-mimeapps.list:330:x-scheme-handler/https=firefox_firefox.desktop
```

</blockQuote>

(which are perhaps remnants of an installation of https://software.opensuse.org/package/MozillaFirefox) as aforestated, KDE's Application Launcher is unable to locate any, and certainly none exist for `code-insiders`:

```pwsh
Get-ChildItem -LiteralPath '/usr/share/applications' | Select-String 'visual studio'
```

<blockQuote>

```log
PS /home/RokeJulianLockhart> Get-ChildItem -LiteralPath '/usr/share/applications' | Select-String 'visual studio'
```

</blockQuote>

```pwsh
Get-ChildItem -LiteralPath '/usr/share/applications' | Select-String 'insiders'
```

<blockQuote>

```log
PS /home/RokeJulianLockhart> Get-ChildItem -LiteralPath '/usr/share/applications' | Select-String 'insiders'
```

</blockQuote>

</blockQuote>

description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.