#!/bin/bash # Installing symlinks in the chroot # We might be changing directories with each symlink. # Don't assume each instance will be from ~/ for the root user. # Workaround for using snapd on debian. Thank You - @stevesveryown. [ ! -e /etc/skel/.local/share ] && mkdir -p /etc/skel/.local/share [ ! -e /var/lib/snapd/desktop/applications ] && mkdir -p /var/lib/snapd/desktop/applications && chmod 777 /var/lib/snapd/desktop/applications ln -s /var/lib/snapd/desktop/applications /etc/skel/.local/share/applications ln -s snap /usr/bin/snap-store # This fixes the 'Right-Click doesn't open terminal in nemo' issue. ln -s xfce4-terminal /usr/bin/gnome-terminal # This work-around lets ICE find Chromium (cromium-browser) in /usr/bin . # No similar work-arounds were needed for FF, FF-ESR, Chrome or Vivaldi . ln -s chromium /usr/bin/chromium-browser # These are for the 3 installer scripts - icons.sh, themes.sh & walls.sh # In 0610- we set the permissions to 777 on the DIRECTORY, not the contents. ln -s icons /usr/share/pepicons ln -s themes /usr/share/pepthemes ln -s backgrounds /usr/share/pepwallpaper # A better version of vi and vim than vim-tiny rm /etc/alternatives/vi ln -s ../../etc/alternatives/vim /usr/bin/vim ln -s ../../usr/bin/vim.tiny /etc/alternatives/vim ln -s ../../usr/bin/busybox /etc/alternatives/vi # Put a .png at ~/.face from within /etc/skel ln -s /usr/share/pixmaps/logo.png /etc/skel/.face