From 489fde7cb3f08dd486835aa46235f6a1462cca56 Mon Sep 17 00:00:00 2001 From: ejose19 <8742215+ejose19@users.noreply.github.com> Date: Thu, 26 Nov 2020 13:55:34 -0300 Subject: [PATCH] Replace custom script reloading with sourcing /etc/profile in qubes.GetAppmenus --- qubes-rpc/qubes.GetAppmenus | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/qubes-rpc/qubes.GetAppmenus b/qubes-rpc/qubes.GetAppmenus index 2422a9b..386918f 100755 --- a/qubes-rpc/qubes.GetAppmenus +++ b/qubes-rpc/qubes.GetAppmenus @@ -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)"