Is there a way to open the "Open with" dialog programmatically for a given file? I mean the dialog that you get when you right-click a file in Nautilus and select "Open with".
I'm preferably looking for a simple shell command to use, but an API or a DBUS interface would also work. I'm stuck with GNOME 2.28.2 on this PC, but would be also interested in a solution for recent GNOME. Maybe there is even a standardized solution for multiple Linux-ish desktops (something like xdg-open-as
)?
I tried gnome-open
and xdg-open
, but both just use the standard association and don't let me choose the application.