Skip to content

Commit

Permalink
Add application icon
Browse files Browse the repository at this point in the history
  • Loading branch information
gjhenrique committed Dec 16, 2022
1 parent 06db5bd commit 532261c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ type DesktopEntry struct {
Exec string
}

var (
applicationIcon = ""
)

func getDesktopEntries() ([]*desktop.Entry, error) {
allEntries := make([]*desktop.Entry, 0, 100)

Expand Down Expand Up @@ -48,7 +52,7 @@ func applicationNames(entries []*desktop.Entry) string {
names := make([]string, len(entries))

for i, entry := range entries {
names[i] = fmt.Sprintf("%s\\x31%s", entry.Name, applicationName(entry))
names[i] = fmt.Sprintf("%s\\x31%s %s", entry.Name, applicationIcon, applicationName(entry))
}

return strings.Join(names, "\n")
Expand Down

0 comments on commit 532261c

Please sign in to comment.