desktop-entries: Icon fallback
This commit is contained in:
parent
b71f0a6676
commit
ddf4936d25
1 changed files with 6 additions and 1 deletions
|
|
@ -161,7 +161,12 @@ impl<W: AsyncWrite + Unpin> App<W> {
|
|||
keywords: entry.keywords().map(|keywords| {
|
||||
keywords.split(';').map(String::from).collect()
|
||||
}),
|
||||
icon: entry.icon().map(|x| x.to_owned()),
|
||||
icon: Some(
|
||||
entry
|
||||
.icon()
|
||||
.map(|x| x.to_owned())
|
||||
.unwrap_or_else(|| "application-x-executable".to_string()),
|
||||
),
|
||||
exec: exec.to_owned(),
|
||||
path: path.clone(),
|
||||
prefers_non_default_gpu: entry.prefers_non_default_gpu(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue