侏儒文件Nautilus上下文菜单“打开方式"申请清单 [英] Gnome files Nautilus context menu "Open with" application list

查看:77
本文介绍了侏儒文件Nautilus上下文菜单“打开方式"申请清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Archlinux上使用Gnome.我的默认文件管理器是Nautilus. 如何在右键单击"菜单中添加推荐的应用程序. (像Ubuntu一样) 他们仅列出,当我单击使用其他应用程序打开" 但这太长了!

I am using Gnome with Archlinux. My default file manager is Nautilus. How add recommended apps in "right-click" menu . (Ubuntu-like) They listed only, when i click "Open with other Application" But it's too long!

推荐答案

Nautilus的与其他应用程序打开"对话框中的项目(一次成功使用)会自动添加到推荐"列表中.

Items in Nautilus's 'Open With Other Application' dialogue are added to to the 'recommended' list automatically after using it once (successfully).

~/.local/share/applications/中创建一个桌面文件,将另一个项目添加到可用应用程序列表中.

Create a desktop-file in ~/.local/share/applications/ to add another item to the list of available applications.

示例条目以可写的方式装载磁盘映像(例如LUKS容器)(从/usr/share/applications/gnome-disk-image-mounter.desktop复制):

Example entry to mount disk images (like LUKS container) writable (copied from /usr/share/applications/gnome-disk-image-mounter.desktop):

[Desktop Entry]
Name=Disk Image Mounter (rw)
Comment=Mount Disk Images writable
Exec=gnome-disk-image-mounter --writable %U
Icon=drive-removable-media
MimeType=application/x-cd-image;application/x-raw-disk-image;
Terminal=false
StartupNotify=false
Type=Application
NoDisplay=true

有关桌面文件的更多信息,请参考man update-desktop-databaseman desktop-file-install.

Refer to man update-desktop-database or man desktop-file-install for more information about desktop-files.

这篇关于侏儒文件Nautilus上下文菜单“打开方式"申请清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆