不再显示为单位破折号,/usr/share/applications/nautilus.desktop
而是/usr/share/applications/org.gnome.Nautilus.desktop
。
更改Exec=
文件本身中的行没有任何效果。问题是DBusActivatable=true
使系统通过dbus运行nautilus 的条目。因此,该Exec=
行被忽略。也许可以通过dbus(/usr/share/dbus-1/services/org.gnome.Nautilus.service
)向nautilus提供所需的目录,但是我对该系统不熟悉。
有关更多信息,请参见此处:https : //wiki.gnome.org/HowDoI/DBusApplicationLaunching
对我来说,一个简单的解决方案是隐藏gnome / dbus启动器图标,并使旧的再次可见。因此,将条目添加NotShowIn=Unity;
到中/org.gnome.Nautilus.desktop
并在中将其注释掉nautilus.desktop
。您可以在那里调整Exec=
所需目录的行。
(file: org.gnome.Nautilus.desktop)
[Desktop Entry]
NotShowIn=Unity; # <--------------------------- add this line !
Name=files
Comment=Access and organize files
Keywords=folder;manager;explore;disk;filesystem;
Exec=nautilus --new-window %U
Icon=system-file-manager
Terminal=false
Type=Application
DBusActivatable=true
StartupNotify=true
Categories=GNOME;GTK;Utility;Core;FileManager;
MimeType=inode/directory;application/x-gnome-saved-search;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.14.2
X-GNOME-UsesNotifications=true
Actions=Window;
X-Unity-IconBackgroundColor=#af4853
X-Ubuntu-Gettext-Domain=nautilus
#OnlyShowIn=Unity; # <---------------- comment out this line !
[Desktop Action Window]
Name=Open a New Window
Exec=nautilus --new-window
#OnlyShowIn=Unity; # <---------------- comment out this line !
(file nautilus.desktop)
[Desktop Entry]
#NotShowIn=Unity; # <---------------- comment out this line !
Name=files
Comment=Access and organize files
Keywords=folder;manager;explore;disk;filesystem;
Exec=nautilus --new-window /{DESIRED_DIRECTORY} # <- adjust !
Icon=system-file-manager
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;Core;FileManager;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.14.2
X-GNOME-UsesNotifications=true
Actions=Window;
X-Unity-IconBackgroundColor=#af4853
X-Ubuntu-Gettext-Domain=nautilus
[Desktop Action Window]
Name=Open a New Window
Exec=nautilus --new-window