我刚刚安装了 Ubuntu,我想用 Nemo 替换 nautilus。我首先使用以下命令安装了 Nemo:
sudo add-apt-repository ppa:embrosyn/cinnamon
sudo apt-get update
sudo apt-get install nemo
Run Code Online (Sandbox Code Playgroud)
然后我使用以下命令将 Nemo 设置为默认文件管理器:
xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
gsettings set org.gnome.desktop.background show-desktop-icons false
gsettings set org.nemo.desktop show-desktop-icons true
Run Code Online (Sandbox Code Playgroud)
我从这篇文章中学到了这些命令。但是,我收到以下错误:
> GLib-GIO-Message: 15:22:17.302: Using the 'memory' GSettings backend.
> Your settings will not be saved or shared with other applications.
Run Code Online (Sandbox Code Playgroud)
我找到了解决此错误的方法,可以在下面的答案中找到。接受的答案提供了一组更新的说明,使 Nemo 成为最新版本的 Ubuntu(撰写本文时为 18.04+)中的默认文件管理器。