How to make app visible in GNOME launcher?

After app installation from crates.io I can launch it from CLI only, there is no any matches in the GNOME launcher. Could somebody advice how to make desktop integration with Cargo?

Thanks

cargo install is only sufficient for simple command-line-only programs. For a proper desktop integration, you need to create a package for your system’s package manager, including appropriate support files like an *.desktop file defining your application's name and icon. Cargo will not help you with this; you need other packaging tools.

3 Likes

And if you want to distribute the app in a distribution-agnostic way just use the Flatpak format and upload it to Flathub. There are quite some apps written in Rust for GNOME and packaged for Flathub and the community around that is really helpful.

1 Like

Sure, I knew about *.desktop so if there is nothing for os-dependent auto-deploy, will configure that manually.

p.s. maybe I can launch the app from CLI just because rustup had configured my bash profile to itself, nothing else.

thanks!

If the binary is in your $PATH, you can also launch it from Gnome's command launcher (Alt+F2).

Here is another reply to my question, maybe could be useful for others:

Or the direct link to integration example: