flathub / flathub/org.flatpak.Builder

Fails to rename desktop file

Open
#71 8 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Shell
Stars
53
Forks
33
PR merge metrics
No merged PRs in 30d

Description

I tried building an app using `org.flatpak.Builder` 1.2.2 on an Endless OS system with Flatpak 1.10.7 (matching Debian Bullseye). It fails when renaming the desktop file in an unexpected way.

Given the following manifest:

```json
{
"app-id": "uk.me.wjt.FlatpakBuilderTest",
"runtime": "org.freedesktop.Platform",
"runtime-version": "21.08",
"sdk": "org.freedesktop.Sdk",
"command": "/bin/true",
"rename-desktop-file": "test.desktop",
"modules": [
{
"name": "test",
"buildsystem": "simple",
"sources": [
{
"type": "file",
"path": "test.desktop"
}
],
"build-commands": [
"install -D -t /app/share/applications test.desktop"
]
}
]
}
```

and the following `test.desktop`:

```ini
[Desktop Entry]
Name=Test
Exec=true
```

Then with `flatpak-builder` 1.0.12 (from Debian Bullseye) the build succeeds, but with `org.flatpak.Builder` 1.2.2 it fails as follows:

```
Emptying app dir '_app'
Downloading sources
Starting build of uk.me.wjt.FlatpakBuilderTest
Cache hit for test, skipping build
Cache miss, checking out last cache hit
Cleaning up
Renaming test.desktop to uk.me.wjt.FlatpakBuilderTest.desktop
Error: Error moving file /sysroot/home/wjt/tmp/fbtest/.flatpak-builder/rofiles/rofiles-lZv3CH/files/share/applications/test.desktop: No such file or directory
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.