AppImage / AppImage/AppImageSpec

How to determine app name?

未關閉
#7 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
沒有語言資料
星號
93
分支
27
PR 合併指標
30 天內沒有已合併 PR

描述

```$APPNAME.png```, ```$APPNAME.desktop``` are going to be different for each app. How can a tool know where to look?

I suppose you can check for any *.png or *.desktop in the root folder, but that seems like it could cause issues if there are multiples of any of these. Perhaps there needs to be something like "MUST include only ONE .desktop file in the root directory" and use the name of the .desktop to get the .png.

Alternatively, you could require that there be an ELF section called ```.appimage_name``` and maybe even ```.appstream_id``` for the AppStream stuff. To get even more specific, you could have ELF sections for ```.icon_path```, ```.desktop_path```, and ```.appstream_path```. This may be overusing the ELF sections though, and it might make sense to just put it in a file somewhere.

I know that ideally the AppImage file name would include it, but this is not always guaranteed. For instance, a user makes a copy of an AppImage and the new name is ```Copy of $APPNAME-$VERSION-$ARCH.AppImage```. Without proper checks, this would resolve to ```Copy of $APPNAME.desktop```.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。