如何为特定文件引发系统本机 OpenWith 对话框?

如何为特定文件引发系统本机 OpenWith 对话框?

xdg-open命令打开由与该类型关联的默认应用程序指定的文件。是否有替代方法可以引发系统本机应用程序选择对话框(当您右键单击文件并选择“打开方式...”时会弹出该对话框)?

答案1

xdg-open 旨在在用户的默认应用程序中打开文件和网页。我认为别无选择。

手册页显示:

Description

xdg-open opens a file or URL in the user's preferred application. If a URL is
provided the URL will be opened in the user's preferred web browser. If a file
is provided the file will be opened in the preferred application for files of
that type. xdg-open supports file, ftp, http and https URLs.

选择:

xdo工具

当然,您必须修改别名以匹配您的设置才能显示该对话框。

还:

gnome-panel-control --run-dialog

如果没有安装则安装,如果可以安装。

相关内容