Skip to content

Commit ddf4936

Browse files
committed
desktop-entries: Icon fallback
1 parent b71f0a6 commit ddf4936

File tree

1 file changed

+6
-1
lines changed
  • plugins/src/desktop_entries

1 file changed

+6
-1
lines changed

plugins/src/desktop_entries/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,12 @@ impl<W: AsyncWrite + Unpin> App<W> {
161161
keywords: entry.keywords().map(|keywords| {
162162
keywords.split(';').map(String::from).collect()
163163
}),
164-
icon: entry.icon().map(|x| x.to_owned()),
164+
icon: Some(
165+
entry
166+
.icon()
167+
.map(|x| x.to_owned())
168+
.unwrap_or_else(|| "application-x-executable".to_string()),
169+
),
165170
exec: exec.to_owned(),
166171
path: path.clone(),
167172
prefers_non_default_gpu: entry.prefers_non_default_gpu(),

0 commit comments

Comments
 (0)