为 Nautilus 创建 .desktop(位于 .local/applications)会破坏 F11/全屏

为 Nautilus 创建 .desktop(位于 .local/applications)会破坏 F11/全屏

摘要:我想在 Nautilus 的左键菜单中添加一些项目,我将 /usr/share/applications/org.gnome.Nautilus.desktop 复制到 ~/.local/share/applications 并对其进行了修改。Nautilus 不再能全屏显示,而且 — 不知何故 — vlc 卡在视频未嵌入播放器中,也无法全屏显示(使用 F11 或勾选菜单中的相应框)。无缘无故,我想添加到左键菜单中的新项目也不起作用。:)

这是修改后的 org.gnome.nautilus.desktop

[Desktop Entry]
Name=Files
Comment=Access and organize files
# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=folder;manager;explore;disk;filesystem;
Exec=nautilus --new-window %U
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=org.gnome.Nautilus
Terminal=false
Type=Application
DBusActivatable=true
StartupNotify=true
Categories=GNOME;GTK;Utility;Core;FileManager;
MimeType=inode/directory;application/x-7z-compressed;application/x-7z-compressed-tar;application/x-bzip;application/x-bzip-compressed-tar;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-gzip;application/x-lha;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-tar;application/x-tarz;application/x-xar;application/x-xz;application/x-xz-compressed-tar;application/zip;application/gzip;application/bzip2;
X-GNOME-UsesNotifications=true
Actions=new-window;documents;downloads;music;pictures;videos;hanselgretel;local;
X-Unity-IconBackgroundColor=#af4853
X-Ubuntu-Gettext-Domain=nautilus

[Desktop Action new-window]
Name=New Window
Exec=nautilus --new-window

[Desktop Action documents]
Name=Documents
Exec=nautilus --new-window $HOME/Documents

[Desktop Action downloads]
Name=Downloads
Exec=nautilus --new-window $HOME/Downloads

[Desktop Action music]
Name=Music
Exec=nautilus --new-window $HOME/Music

[Desktop Action pictures]
Name=Pictures
Exec=nautilus --new-window $HOME/Pictures

[Desktop Action videos]
Name=Videos
Exec=nautilus --new-window $HOME/Videos

[Desktop Action hanselgretel]
Name=Hansel&Gretel
Exec=nautilus --new-window $HOME/.HanselGretel

[Desktop Action local]
Name=Local
Exec=nautilus --new-window $HOME/.local

如上所述,它实际上不起作用。如果有人知道为什么会这样,那就太好了,尽管“F11 不再起作用”让我抓狂。现在,至于它的行为。已经存在的第一个项目(新窗口)工作正常。我添加的那些:当我左键单击 Nautilus 时它们会出现,但当我单击它们时实际上不起作用。

在此处输入图片描述

在我添加修改后的 .desktop 后,F11 在 Nautilus 和 vlc 上停止工作。它仍然可以在 Firefox 和我尝试的其他几个程序上运行。

现在,我已设法通过删除 snap 和 apt 安装 deb 使其在 vlc 上运行。所以我没问题(不介意它有点过时。)另一方面,我已清除并重新安装了 Nautilus,但没有任何变化。我显然还删除了修改后的 .desktop。

相关内容