Add files and variable missing in last commit.

This commit is contained in:
Andreas B. Mundt 2024-01-22 10:06:33 +01:00
parent 4ce97f5486
commit 5a2ae0d33c
3 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#!/usr/bin/bash
#
# Synchronize desktop starters
#
set -eu
source /etc/lmn/vm.conf
RSYNC_COMMAND=$(rsync -ai --delete --exclude=mimeinfo.cache "${DESKTOPSTARTERDIR}" \
/usr/local/share/applications/ | sed '/ \.\//d')
if [[ $? -eq 0 ]] && [[ -n "${RSYNC_COMMAND}" ]]; then
echo "${RSYNC_COMMAND}"
update-desktop-database /usr/local/share/applications
fi