AppImage / AppImage/appimagetool

broken `.DirIcon` is generated if `.desktop` file references icon not in the appdir root

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

描述

### to reproduce
1. create an `AppDir` the following`.desktop` file:
`app.desktop`:
```ini
[Desktop Entry]
Name=test
Exec=AppRun
Icon=/usr/bin/icon
Type=Application
Categories=Development;IDE;
Terminal=false
StartupNotify=true
```
2. put an icon file at `AppDir/usr/bin/icon.svg`
3. run `ARCH=x86_64 appimagetool .`
4. attempt to open the `.DirIcon` symlink

### expected result

either:

- `.DirIcon` links to `AppDir/usr/bin/icon.svg`
- fail the build with an error stating that the icon must be in the AppDir root

### actual result

symlink is broken because it links to non-existent `AppDir/icon.svg`

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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