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

This commit is contained in:
ejose19 2020-11-26 13:55:34 -03:00
parent c3761ac7e7
commit 489fde7cb3
No known key found for this signature in database
GPG Key ID: 09BEDF7CC137762C

View File

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