Replace custom script reloading with sourcing /etc/profile in qubes.GetAppmenus

Этот коммит содержится в:
ejose19 2020-11-26 13:55:34 -03:00
родитель c3761ac7e7
Коммит 489fde7cb3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 09BEDF7CC137762C

Просмотреть файл

@ -9,12 +9,8 @@
# Reload scripts in /etc/profile.d/, in case they register additional
# directories in XDG_DATA_DIRS and we forgot them
# (e.g. because we are running under sudo).
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
# shellcheck disable=SC1090
. "$i" >/dev/null
fi
done
# shellcheck disable=SC1091
source /etc/profile
if [ -z "$XDG_DATA_HOME" ]; then
user="$(whoami)"