Skip to content

Commit a718c6c

Browse files
committed
bugfix(applications): Skip firstline check if it is a comment -> inkscape
1 parent 610a984 commit a718c6c

File tree

1 file changed

+3
-4
lines changed
  • plugins/applications/src

1 file changed

+3
-4
lines changed

plugins/applications/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,11 @@ fn read_single_entry(
159159
Ok(data) => {
160160
let mut map = HashMap::new();
161161
let mut iter = data.lines();
162-
if iter
162+
let first_line = iter
163163
.next()
164164
.unwrap_or(Ok("".to_string()))
165-
.unwrap_or("".to_string())
166-
!= "[Desktop Entry]"
167-
{
165+
.unwrap_or("".to_string());
166+
if first_line != "[Desktop Entry]" && !first_line.starts_with("#") {
168167
return;
169168
}
170169
for line_res in iter {

0 commit comments

Comments
 (0)