WARNING: Binary not found for Exec line

Apr 4, 2025 Closed
D

I found only this warning on package build:

WARNING: Binary not found for Exec line : /usr/bin/appname

From the docs:

The Exec key of the desktop files is rewritten by Flatpak when installing an app

Is this normal or maybe I should change default Exec pattern anyhow?
Just won’t to have this warning, even non-critical.

C

Since on Flatpak your application binary will be under /app/bin, it will not be able to find it under /usr/bin.

You can shorten the Exec part in the desktop file to only the name of the binary (appname). As long as the binary is in a directory found in the PATH environment variable, it can be launched this way.