WARNING: Binary not found for Exec line

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.

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.

1 Like

This topic was automatically closed after 2 days. New replies are no longer allowed.