Make sure there is a .desktop file in either: /usr/share/applications/ or ~/.local/share/applications/ Next, make sure the [Exec] of that item includes %f to specify where the file name goes in the command. Now execute: sudo update-desktop-database For more info / variables in Exec see: https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html