Bug 414034 - Extra .desktop file present in okular snap
Summary: Extra .desktop file present in okular snap
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-11 16:45 UTC by Ron Houk
Modified: 2020-02-27 15:01 UTC (History)
4 users (show)

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


Attachments
Screenshot of both instances appearing in menu (342.14 KB, image/png)
2019-11-11 16:45 UTC, Ron Houk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Houk 2019-11-11 16:45:40 UTC
Created attachment 123841 [details]
Screenshot of both instances appearing in menu

SUMMARY

After installing the Okular snap and then typing okular into the menu on gnome, Iā€™m seeing two icons. Both of them launch the app.

In /var/lib/snapd/desktop/applications there appears to be two .desktop files for okular.

There is okular_okular.desktop file that I would expect to see, but there is also a okular_org.kde.okular.desktop as well.


STEPS TO REPRODUCE
1. Install as snap
2. Type "okular" into menu

OBSERVED RESULT

Two icons for application are present


EXPECTED RESULT

Only one icon for the application


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu 18.04.3 (installed as a snap)
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2019-11-12 19:19:59 UTC
This is the .desktop file for the mobile version. Bhushan, any ideas?
Comment 2 Guilherme Silva 2019-12-31 02:58:43 UTC
FYI, this secondary desktop file appears in the official okular package on Arch Linux as well. The "main" desktop file of Okular is located here:

/usr/share/applications/org.kde.okular.desktop

And the one you mentioned, which is meant for the "/usr/bin/okularkirigami" binary, sits here:

/usr/share/applications/org.kde.okular.kirigami.desktop

Also worth mentioning that desktop file for Okular Kirigami _does not_ have a "Categories" section in it, so when you open the Application Launcher in Plasma, the Okular Kirigami program shows under the "Lost & Found" section instead of "Graphics".
Comment 3 Albert Astals Cid 2020-02-27 15:01:39 UTC
You have to choose which version to compile now