abiosoft / abiosoft/launchar

Question about your code

未关闭
#2 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Vala
星标
11
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

I really like the launcher that you made. Right now, I am making [my own](https://github.com/ancientstraits/octo-desktop-environment). However, I want to know how you alphabetized the entries in Launchar. I am trying to understand the code, but it is kind of hard, since I have never used classes in my whole life.

On C, I tried making a for loop to print the display names of each .desktop file (for my app launcher, I just created a button instead of printing):

```
GList *l;
while (l = g_app_info_get_all(), l != NULL, l = l->next){
printf("%s\n", g_app_info_get_display name())
}
```

However, I do not get results in alphabetical order, while Launchar does. Do you know how to alphabetize the entries? I am thinking of storing everything in a 2D char array, then sorting it. Is that what you did?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。