Closed mmstick closed 2 years ago
Initial setup no longer shows with latest commit.
Tested on 21.10 :+1: 21.04 :+1: 20.04 :+1:
It looks like the gnome-initial-setup.desktop
file already had NoDisplay=true
set, but that wasn't being respected by the launcher because we only respect NoDisplay=true
if OnlyShowIn
is not set:
// And also avoid showing anything that's set as `NoDisplay`
if !only_show_in && entry.no_display() {
continue;
}
Is this behavior correct? The spec doesn't seem to specify whether NoDisplay or OnlyShowIn should take precedence (probably because it doesn't make sense to OnlyShowIn something that's not supposed to display anywhere), but it seems like NoDisplay
should mean no display.
(Hardcoding G-I-S like this PR does wouldn't be necessary if NoDisplay
took precedence, if I'm understanding correctly.)
Some desktop entries, such as gnome-control-center panels, also specify NoDisplay=true
and have OnlyShowIn=GNOME
set, but we do want them to display of course. I'm not 100% certain on the precise precedence either.
Some desktop entries, such as gnome-control-center panels, also specify
NoDisplay=true
and haveOnlyShowIn=GNOME
set, but we do want them to display of course.
Ahh, that's why we did that, because we wanted them to show up as Launcher search results but not in the Applications menu. It's too bad there's not a SearchResultsOnly
flag or something.
Since the Applications menu seems to handle those .desktop files separately (Settings panels are shown in their own section of search results), maybe it would make sense to separate Settings panels into a different Launcher plugin eventually. But it's probably not too big of a deal.
I am still seeing initial setup in 21.10