Skip to content

Commit

Permalink
Only patch the autostart .desktop files that are installed on the sys…
Browse files Browse the repository at this point in the history
…tem (#3291)

This prevents invalid 'groupless' files being generated for .desktop files not present on the host
  • Loading branch information
scratchings authored Jan 9, 2024
1 parent 4dc013d commit 9b4a2b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/bc_desktop/template/desktops/mate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b4a2b2

Please sign in to comment.