NotShowIn and OnlyShowIn in .desktop files are ignored

Bug #1608546 reported by Larry Price
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-app-launch (Ubuntu)
Fix Released
High
Ted Gould

Bug Description

Applications with .desktop file containing NotShowIn=Unity or OnlyShowIn=/!Unity/ should be treated as Hidden. This affects libertine, as some applications with these properties are currently shown resulting in unlaunchable applications (#1606593). There are certainly many more libertine applications which will be affected by this and cause the users to see unlaunchable apps.

This bug can be traced directly to the workaround in the Desktop constructor in application-info-desktop.c, lines 185,186 at time of writing. A temporary workaround is causing the launcher to work unexpectedly. This seems to be an issue that has permeated from deeper within the system, so this bug is being filed to continue the linkage to the source of the issue.

I discussed with @ted why this has yet to be undone and have included the chat log:

<ted> larryprice: So the issue is that design doesn't want the media player to show up in the list of applications.
<ted> larryprice: But they do want users to be able to play media files and have them show up.
<ted> larryprice: The proper way to do that is to have a trusted prompt overlay that plays the video.
<ted> larryprice: But... the trusted prompt overlays basically allow you to take over the application, and you can't remove them.
<ted> larryprice: So if something like the media player (or something else) was to hang or crash you'd lose access to your app.
<ted> larryprice: Thus we need some way for Unity8 to allow closing the trusted prompt overlay.
<ted> larryprice: In the mean time, we're making media player an app, but just marking its desktop files incorrectly to cause the application grid to invalidate it.
<ted> larryprice: Since UAL didn't check that before when launching, it worked, and we've become dependent on that working.
<larryprice> ted, geez louise
<ted> In general, the U8 team has said they will fix this, but eh, it's been a while that I've pinged them on it. I don't think they've fixed it yet.

Related branches

Ted Gould (ted)
Changed in ubuntu-app-launch (Ubuntu):
status: New → Confirmed
importance: Undecided → High
dobey (dobey)
Changed in ubuntu-app-launch (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Ted Gould (ted)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-app-launch - 0.9+17.04.20170113.1-0ubuntu1

---------------
ubuntu-app-launch (0.9+17.04.20170113.1-0ubuntu1) zesty; urgency=medium

  [ Pete Woods ]
  * Compatibility with unversioned cmake-extras modules (LP: #1563573)

  [ Rodney Dawes ]
  * Handle more common Icon entries in .desktop files for snaps. (LP:
    #1639952)

  [ Ted Gould ]
  * Fixes to the exec-util test to ensure it is more reliable
  * Reenable OnlyShowIn checking for Desktop files (LP: #1580092,
    #1606593, #1608546)

 -- Ted Gould <email address hidden> Fri, 13 Jan 2017 22:16:18 +0000

Changed in ubuntu-app-launch (Ubuntu):
status: In Progress → Fix Released
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.