File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
plugins/src/desktop_entries Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,6 @@ impl<W: AsyncWrite + Unpin> App<W> {
78
78
if deduplicator. contains ( appid) {
79
79
return None ;
80
80
}
81
- // Always cache already visited entries to allow overriding entries e.g. by
82
- // placing a modified copy in ~/.local/share/applications/
83
- deduplicator. insert ( appid. to_owned ( ) ) ;
84
81
85
82
de. name ( & self . locales ) ?;
86
83
@@ -136,6 +133,13 @@ impl<W: AsyncWrite + Unpin> App<W> {
136
133
return None ;
137
134
}
138
135
136
+ // Always cache already visited entries to allow overriding entries e.g. by
137
+ // placing a modified copy in ~/.local/share/applications/
138
+ //
139
+ // We only do this when we can add an entry to our list, otherwise we risk
140
+ // ignoring user overrides or valid applications due to shell URL handlers
141
+ deduplicator. insert ( appid. to_owned ( ) ) ;
142
+
139
143
Some ( de)
140
144
} )
141
145
} )
You can’t perform that action at this time.
0 commit comments