Bug 453788 - flatpak (and snap ? ) application desktop entry file not created after installation
Summary: flatpak (and snap ? ) application desktop entry file not created after instal...
Status: RESOLVED UPSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.24.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL: https://github.com/flatpak/flatpak/is...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-14 15:11 UTC by Matej Starc
Modified: 2022-05-24 15:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matej Starc 2022-05-14 15:11:48 UTC
SUMMARY
Desktop entry file not created for flatpak source (snap source probably has the same problem).

STEPS TO REPRODUCE
1. Try installing any flatpak(or snap ?) app.


OBSERVED RESULT
Application entry not created after installation which allows you to launch the app from an application launcher.

EXPECTED RESULT
I think discover should create a desktop entry for the user to be able to directly launch the app after installation.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 1 Aleix Pol 2022-05-15 22:59:11 UTC
This is flatpak's (or snap's) to do.

Also I really cannot reproduce, please be more specific in your bug reports. Explain what you saw and what you expected, instead of what should have been.
Comment 2 Nate Graham 2022-05-16 18:40:13 UTC
It does. Or at least, it's supposed to. And this works for me with all the Flatpak apps I've ever used Discover to install.

And yeah, what specific apps exhibit this issue?
Comment 3 Matej Starc 2022-05-20 17:12:50 UTC
(In reply to Nate Graham from comment #2)
> It does. Or at least, it's supposed to. And this works for me with all the
> Flatpak apps I've ever used Discover to install.
> 
> And yeah, what specific apps exhibit this issue?

I tried installing several apps (figma, speedcrunch and transmission) with flatpak source and neither created an application entry.
Comment 4 Nate Graham 2022-05-23 15:18:14 UTC
That's odd, it works for me with those apps.

Can you paste the output of the following commands:
- `flatpak list`
- `ls /var/lib/flatpak/app`
- `ls /var/lib/flatpak/app/*/current/active/export/share/applications/`
Comment 5 Matej Starc 2022-05-23 19:45:14 UTC
(In reply to Nate Graham from comment #4)
> That's odd, it works for me with those apps.
> 
> Can you paste the output of the following commands:
> - `flatpak list`
> - `ls /var/lib/flatpak/app`
> - `ls /var/lib/flatpak/app/*/current/active/export/share/applications/`

matej@matej ~> flatpak list
Name                          Application ID                                Version              Branch          Installation
NetBeans                      org.apache.netbeans                           13                   stable          system
Freedesktop Platform          org.freedesktop.Platform                      21.08.13             21.08           system
Mesa                          org.freedesktop.Platform.GL.default           21.3.8               21.08           system
Intel                         org.freedesktop.Platform.VAAPI.Intel                               21.08           system
openh264                      org.freedesktop.Platform.openh264             2.1.0                2.0             system
Freedesktop SDK               org.freedesktop.Sdk                           21.08.13             21.08           system
Breeze GTK theme              org.gtk.Gtk3theme.Breeze                                           3.22            system
Zoom                          us.zoom.Zoom                                  5.10.6.2943          stable          system
matej@matej ~> ls /var/lib/flatpak/app
org.apache.netbeans/  us.zoom.Zoom/
matej@matej ~> ls /var/lib/flatpak/app/*/current/active/export/share/applications/
/var/lib/flatpak/app/org.apache.netbeans/current/active/export/share/applications/:
org.apache.netbeans.desktop*

/var/lib/flatpak/app/us.zoom.Zoom/current/active/export/share/applications/:
us.zoom.Zoom.desktop*

The programs I mentioned above already uninstalled, but Zoom can be used as an example too.
Comment 6 Nate Graham 2022-05-23 20:01:15 UTC
Based on that, it looks like the Zoom flatpak did indeed install its .desktop file successfully.

You're not using fish shell as your login shell, are you? If so, this is https://github.com/flatpak/flatpak/issues/3109.
Comment 7 Matej Starc 2022-05-24 15:05:38 UTC
(In reply to Nate Graham from comment #6)
> Based on that, it looks like the Zoom flatpak did indeed install its
> .desktop file successfully.
> 
> You're not using fish shell as your login shell, are you? If so, this is
> https://github.com/flatpak/flatpak/issues/3109.

Thanks. It works now.
Comment 8 Nate Graham 2022-05-24 15:16:45 UTC
Fish shell strikes again!