添加应用程序到'使用其他应用程序'对话框

cas*_*tis 5 ubuntu komodo

我今天早些时候安装了Komodo,无法在"使用其他应用程序打开"对话框中找到它.除此之外,应用程序按预期工作.

使用ubuntu 11.10

hbt*_*hbt 5

答案的网址已关闭

操作方法如下:

在 ~/.local/share/applications 中创建名为 XXX.desktopflashplayer.desktop 的文件

文件内容

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/home/executable-path %f
Name=flashplayer
Comment=Custom definition for flashplayer
NoDisplay=true
Run Code Online (Sandbox Code Playgroud)

注意:可执行文件的路径%f后面是应用程序出现在“打开方式”菜单中所必需的。

在鹦鹉螺号中,

- right click on file
- open with other applications
- show other applications
- select the one created e.g flashplayer
Run Code Online (Sandbox Code Playgroud)

还要更新属性 / open-with 并将其设置为默认值

  • %f 是非常重要的部分。我有一个预制的 .desktop 文件,该文件无法正常工作,因为缺少 %f - 这意味着应用程序接受传递给它的文件位置。 (3认同)