fix(desktop-entries): Update dependency to use X-Ubuntu-Gettext-Domain translations

This commit is contained in:
Michael Aaron Murphy 2021-08-20 20:21:33 +02:00
parent 6efad71f0e
commit d6e93877ad
3 changed files with 93 additions and 5 deletions

View file

@ -124,8 +124,12 @@ impl<W: AsyncWrite + Unpin> App<W> {
if let Some(exec) = exec.split_ascii_whitespace().next() {
let item = Item {
appid: entry.appid.to_owned(),
name: name.to_owned(),
description: entry.comment(locale).unwrap_or("").to_owned(),
name: name.to_string(),
description: entry
.comment(locale)
.as_deref()
.unwrap_or("")
.to_owned(),
keywords: entry.keywords().map(|keywords| {
keywords.split(';').map(String::from).collect()
}),