@dale-f-beaudoin
Not sure if this is what you wanted, but seems to be working fine for me, if I run it after installing your test ISO:
sudo rm /usr/share/applications/defaults.list
sudo cp -a /etc/gnome/defaults.list /usr/share/applications/defaults.list
sudo apt install -y caja caja-sendto caja-share caja-open-terminal caja-wallpaper deja-dup-caja
sudo apt purge -y nautilus nautilus-sendto nautilus-share
sudo tee -a /etc/xdg/autostart/caja-autostart.desktop <<EOF
[Desktop Entry]
Type=Application
Name=Caja
Exec=caja --force-desktop --no-default-window
OnlyShowIn=Unity;
NoDisplay=true
EOF
sudo tee -a /usr/share/applications/caja-unity.desktop <<EOF
[Desktop Entry]
Name=File Manager
GenericName=File Manager
Exec=caja
Icon=system-file-manager
Terminal=false
Type=Application
StartupNotify=false
OnlyShowIn=Unity;
X-MATE-Bugzilla-Bugzilla=MATE\
X-MATE-Bugzilla-Product=caja\
X-MATE-Bugzilla-Component=general
X-MATE-Bugzilla-Version=1.18.5
X-MATE-Autostart-Phase=Desktop
X-MATE-Autostart-Notify=true
X-MATE-AutoRestart=true
X-MATE-Provides=filemanager
Actions=new-window;
[Desktop Action new-window]
Name=New Window
Exec=caja
EOF
gsettings set org.mate.background picture-filename /usr/share/backgrounds/warty-final-ubuntu.png
gsettings set org.mate.caja.desktop computer-icon-visible false
gsettings set org.mate.caja.desktop trash-icon-visible false
gsettings set org.mate.caja.desktop home-icon-visible false
gsettings set org.mate.caja.desktop volumes-visible false
sudo sed -i "s/nautilus-folder-handler.desktop/caja-folder-handler.desktop/g" /usr/share/applications/defaults.list
sudo tee -a /usr/share/applications/defaults.list <<EOF
application/x-gnome-saved-search=caja-folder-handler.desktop
x-scheme-handler/ssh=caja-folder-handler.desktop
x-scheme-handler/ftp=caja-folder-handler.desktop
EOF
sudo apt install -y mate-calc pluma engrampa eom mate-system-monitor mate-terminal atril vlc
sudo apt purge -y gnome-calculator gedit file-roller eog gnome-system-monitor gnome-terminal evince totem
sudo tee -a /usr/share/applications/mate-system-monitor-unity.desktop <<EOF
[Desktop Entry]
Name=System Monitor
GenericName=System Monitor
TryExec=mate-system-monitor
Exec=mate-system-monitor
Icon=utilities-system-monitor
Terminal=false
Type=Application
StartupNotify=true
OnlyShowIn=Unity;
X-MATE-Bugzilla-Bugzilla=MATE
X-MATE-Bugzilla-Product=system-monitor
X-MATE-Bugzilla-Component=general
X-MATE-Bugzilla-Version=1.18.1
EOF
sudo update-desktop-database
sudo sed -i "s/gedit.desktop/pluma.desktop/g" /usr/share/applications/defaults.list
sudo sed -i "s/org.gnome.FileRoller.desktop/engrampa.desktop/g" /usr/share/applications/defaults.list
sudo sed -i "s/eog.desktop/eom.desktop/g" /usr/share/applications/defaults.list
sudo sed -i "s/evince.desktop/atril.desktop/g" /usr/share/applications/defaults.list
sudo sed -i "s/org.gnome.Totem.desktop/vlc.desktop/g" /usr/share/applications/defaults.list
sudo update-alternatives --install "$(which x-terminal-emulator)" x-terminal-emulator "$(which mate-terminal)" 30
sudo update-alternatives --set x-terminal-emulator "$(which mate-terminal)"
gsettings set org.mate.terminal.profile:/org/mate/terminal/profiles/default/ use-theme-colors false
gsettings set org.mate.terminal.profile:/org/mate/terminal/profiles/default/ background-color "#000000000000"
gsettings set org.mate.terminal.profile:/org/mate/terminal/profiles/default/ foreground-color "#FFFFFFFFFFFF"
gsettings set org.mate.terminal.profile:/org/mate/terminal/profiles/default/ bold-color "#000000000000"
gsettings set com.canonical.Unity.Launcher favorites "['application://ubiquity.desktop', 'application://caja-unity.desktop', 'application://firefox.desktop', 'application://libreoffice-writer.desktop', 'application://libreoffice-calc.desktop', 'application://libreoffice-impress.desktop', 'application://org.gnome.Software.desktop', 'application://unity-control-center.desktop', 'unity://running-apps', 'unity://expo-icon', 'unity://devices']"
The first two lines intend to fix this, since mime types are going to be altered system-wide:
Then I add or replace mime types in /usr/share/applications/defaults.list
accordingly, but I don’t know if this is the proper way to do it.
I’ve added a unity-specific shortcut for mate-system-monitor
and hid the computer, home, volumes and trash icons in the desktop, since they make no sense to be there for unity.
Also, do note that removing gnome-calculator
also removes unity-scope-calculator
, which I have no idea if it can be patched to work with mate-calc
.
Theming for the MATE terminal isn’t working as intended, so I altered it manually to be easier on the eyes while testing. I’ve since tested with other themes in the repo, and it seems that Ambiance is the only one that doesn’t work properly on MATE terminal. It seems the issue has to do with the fact that Ambiance and Radiance have never been properly patched to support MATE. I talk about it in more detail here.
@Wimpress am I missing something? I didn’t try to replicate your experiment with mate-user-share
because I don’t know how to do it.
On a side note, I just noticed nautilus
isn’t patched to display a “full global menu” anymore, which is what I imagine will end up happening to all other GNOME apps.