系统:Ubuntu Mate 21.04
我希望在编辑 .desktop 文件的上下文菜单中将 设为默认选项pluma
。但 MATE 拒绝满足我的愿望!我该如何让它按我的意愿行事?
这显示了 Libreoffice 的默认选择
我选择“使用其他应用程序打开”,然后选择pluma
。“记住此应用程序”框被勾选。
但是下次我这样做时,Libreoffice 仍然是默认设置。
如何使pluma
编辑 .desktop 文件的上下文菜单项成为默认的?
根据要求,以下是~/.config/mimeapps.list
:
[Default Applications]
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
text/html=firefox.desktop
x-scheme-handler/about=firefox.desktop
x-scheme-handler/mailto=thunderbird.desktop
application/x-extension-eml=thunderbird.desktop
message/rfc822=thunderbird.desktop
inode/directory=caja-folder-handler.desktop
text/plain=pluma.desktop
audio/mpeg=rhythmbox.desktop
audio/x-mpegurl=rhythmbox.desktop
audio/x-scpls=rhythmbox.desktop
audio/x-vorbis+ogg=rhythmbox.desktop
audio/x-wav=rhythmbox.desktop
video/mp4=io.github.celluloid_player.Celluloid.desktop
video/mpeg=io.github.celluloid_player.Celluloid.desktop
video/mp2t=io.github.celluloid_player.Celluloid.desktop
video/msvideo=io.github.celluloid_player.Celluloid.desktop
video/quicktime=io.github.celluloid_player.Celluloid.desktop
video/webm=io.github.celluloid_player.Celluloid.desktop
video/x-avi=io.github.celluloid_player.Celluloid.desktop
video/x-flv=io.github.celluloid_player.Celluloid.desktop
video/x-matroska=io.github.celluloid_player.Celluloid.desktop
video/x-mpeg=io.github.celluloid_player.Celluloid.desktop
video/x-ogm+ogg=io.github.celluloid_player.Celluloid.desktop
image/bmp=eom.desktop
image/gif=eom.desktop
image/jpeg=eom.desktop
image/png=eom.desktop
image/tiff=eom.desktop
application/pdf=atril.desktop
application/vnd.oasis.opendocument.text=libreoffice-writer.desktop
application/msword=libreoffice-writer.desktop
application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop
application/vnd.oasis.opendocument.spreadsheet=libreoffice-calc.desktop
application/vnd.ms-excel=libreoffice-calc.desktop
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop
application/x-desktop=pluma.desktop
application/rtf=libreoffice-writer.desktop
application/x-shellscript=pluma.desktop
[Added Associations]
audio/mpeg=vlc.desktop;rhythmbox.desktop;
audio/x-mpegurl=vlc.desktop;rhythmbox.desktop;
audio/x-scpls=vlc.desktop;rhythmbox.desktop;
audio/x-vorbis+ogg=vlc.desktop;rhythmbox.desktop;
audio/x-wav=vlc.desktop;rhythmbox.desktop;
video/mp4=vlc.desktop;io.github.celluloid_player.Celluloid.desktop;
video/mpeg=vlc.desktop;io.github.celluloid_player.Celluloid.desktop;
video/mp2t=vlc.desktop;io.github.celluloid_player.Celluloid.desktop;
video/msvideo=vlc.desktop;io.github.celluloid_player.Celluloid.desktop;
video/quicktime=vlc.desktop;io.github.celluloid_player.Celluloid.desktop;
video/webm=vlc.desktop;io.github.celluloid_player.Celluloid.desktop;
video/x-avi=vlc.desktop;io.github.celluloid_player.Celluloid.desktop;
video/x-flv=vlc.desktop;io.github.celluloid_player.Celluloid.desktop;
video/x-matroska=vlc.desktop;io.github.celluloid_player.Celluloid.desktop;
video/x-mpeg=vlc.desktop;io.github.celluloid_player.Celluloid.desktop;
video/x-ogm+ogg=vlc.desktop;io.github.celluloid_player.Celluloid.desktop;
application/rtf=libreoffice-writer.desktop;
@nobody 在评论中建议我尝试上下文菜单中的“属性”条目。这就是真正奇怪的地方。首先,它看起来像这样。
我以为胜利就在眼前!我删除了 Libreoffice,Pluma 旁边的复选框被选中。这肯定有效!但是不,拒绝,现在上下文菜单有无默认,仅显示使用其他应用程序打开 这时,我开始认为有人不想让我用 Pluma 打开它们!