-
Notifications
You must be signed in to change notification settings - Fork 3
/
replace-nautilus-nemo
37 lines (32 loc) · 1.21 KB
/
replace-nautilus-nemo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# replace-nautilus-nemo
# System - Replace filemanager Nautilus with Nemo
# Replace file manager Nautilus with more powerful Nemo
echo -e "Running: System - Replace filemanager Nautilus with Nemo - ./scripts/replace-nautilus-nemo"
sudo apt-get install -y nemo nemo-fileroller &&
# Set nemo as main filemanager
sudo xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search &&
sudo gsettings set org.gnome.desktop.background show-desktop-icons false &&
sudo gsettings set org.nemo.desktop show-desktop-icons true &&
sudo xdg-mime query default inode/directory &&
# Add desktop support - autostart command: "nemo-desktop"
echo -e "[Desktop Entry]\n\
Type=Application\n\
Name=Desktop Icons\n\
Exec=nemo-desktop\n\
OnlyShowIn=GNOME\n\
Hidden=false\n\
NoDisplay=false\n\
X-GNOME-Autostart-Phase=Desktop\n\
X-GNOME-Autostart-Notify=true\n\
X-GNOME-AutoRestart=true\n\
X-GNOME-Provides=filemanager\n\
Comment=Start Nemo desktop at log in" | sudo tee /etc/xdg/autostart/nemo-desktop.desktop > /dev/null &&
# Remove Nautilus
sudo apt-get remove -y --purge nautilus nautilus-extension-gnome-terminal nautilus-sendto nautilus-share
if [ $? -eq 0 ]; then
echo -e "\\nOK\\n"
exit 0
else
echo -e "\\nFAIL\\n"
exit 1
fi