是否可以在Mac OS X Snow Leopard上运行Nautilus而不是Finder?如何?

有帮助吗?

解决方案

看起来它在Macports中可用, ,所以你可以 安装MacPorts 然后使用它安装Nautilus:

sudo port install nautilus  

然后,您应该能够使用 nautilus 终端命令。


您可能会在安装过程中看到以下内容:

############################################################################
# Startup items have been generated that will aid in
# starting dbus with launchd. They are disabled
# by default. Execute the following command to start them,
# and to cause them to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
# launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
############################################################################

手动运行命令应该足以运行 nautilus 安装后直接(无重新启动)。

其他提示

编辑 当我最初写这个答案时,还有另一个答案和一些评论涉及运行Nautilus的问题 反而 Finder:换句话说,如何防止发现者完全运行。鉴于此上下文,我以其原始形式编写的答案澄清和/或提供了另一种方法。

看来原始作者现在删除了该答案和相关评论。没有提供上下文的答案,我就可以理解我的原始答案似乎是如何从任何地方出来的(因此票价?)。我将尝试对其进行重新设计,以提供删除答案有助于创建的必要环境。

乔什(Josh)关于Macports的答案解决了如何安装 nautilus, ,它没有解决如何“而不是查找器”运行它。

在另一个答案中,似乎有可能防止发现者运行。

与码头这样的应用程序不同,Finder不被视为“必需”应用程序。例如,如果您要写一个苹果本 tell application "Dock" to quit"然后运行它,登录窗口将立即重新启动码头,因为它假设码头必须始终运行。但是,只要您以允许OS X知道您有明确意图这样做的方式退出它,登录窗口就不会重新启动它。

为此,您要做的就是简单地告诉发现者退出而不是试图杀死它。当您使用强制Quit选项或使用 kill 或者 killall 在终端, loginwindow (或者 launchd 对于您的用户帐户)将立即尝试重新启动它,因为它看到它“意外”终止。

告诉Finder通过Apple事件退出不会导致它自动重新启动。

可以在登录时运行以下苹果本,以退出查找器:

property runningApps : {}
property assureQuitMenuItem : true

tell application "System Events" to set runningApps to name of every application process

if (runningApps contains "Finder") then
    tell application "Finder" to quit
end if

if (assureQuitMenuItem) then
    set quitMenuItem to missing value
    try
        set quitMenuItem to (do shell script "/usr/bin/defaults read com.apple.finder QuitMenuItem")
    on error
        set quitMenuItem to "0"
    end try
    if quitMenuItem = "0" then
        do shell script "/usr/bin/defaults write com.apple.finder QuitMenuItem 1"
    end if
end if

该应用程序表格中保存的版本是: quitfinder.zip

(您可以在AppleScript编辑器中打开应用程序,以通过将脚本应用程序图标拖动到AppleScript编辑器的应用程序图标来查看其内容)。

许可以下: CC-BY-SA归因
不隶属于 apple.stackexchange
scroll top