diff --git a/apps/bc_desktop/template/desktops/mate.sh b/apps/bc_desktop/template/desktops/mate.sh index 5cfba959d8..efd4d76b06 100755 --- a/apps/bc_desktop/template/desktops/mate.sh +++ b/apps/bc_desktop/template/desktops/mate.sh @@ -14,7 +14,9 @@ AUTOSTART="${HOME}/.config/autostart" rm -fr "${AUTOSTART}" # clean up previous autostarts mkdir -p "${AUTOSTART}" for service in "gnome-keyring-gpg" "gnome-keyring-pkcs11" "gnome-keyring-secrets" "gnome-keyring-ssh" "mate-volume-control-applet" "polkit-mate-authentication-agent-1" "pulseaudio" "rhsm-icon" "spice-vdagent" "xfce4-power-manager"; do - cat "/etc/xdg/autostart/${service}.desktop" <(echo "X-MATE-Autostart-enabled=false") > "${AUTOSTART}/${service}.desktop" + if [[ -f "/etc/xdg/autostart/${service}.desktop" ]]; then + cat "/etc/xdg/autostart/${service}.desktop" <(echo "X-MATE-Autostart-enabled=false") > "${AUTOSTART}/${service}.desktop" + fi done # Disable pulseaudio