diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2024-03-16 15:46:53 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2024-03-16 15:46:53 +0100 |
| commit | be3ba265c29f208c6063f9597fa2259f8e560e3b (patch) | |
| tree | 2dbb5346cc50aa8458ab33f2fa27f83cd32234f5 /guides/setups/operating-systems/apps-demo | |
| parent | 322a1547c217314b278acb9c8929378e9378bfb7 (diff) | |
| download | memory-leaks-be3ba265c29f208c6063f9597fa2259f8e560e3b.tar.xz | |
Fix app activation when XDG_DATA_DIRS is unset
That else branch broke session startup on my Debian laptop. Guessing
this is related to:
> If $XDG_DATA_DIRS is either not set or empty, a value equal to
> /usr/local/share/:/usr/share/ should be used.
— XDG Base Directory Specification
Oops.
Diffstat (limited to 'guides/setups/operating-systems/apps-demo')
| -rw-r--r-- | guides/setups/operating-systems/apps-demo/activate | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/guides/setups/operating-systems/apps-demo/activate b/guides/setups/operating-systems/apps-demo/activate index fbf522c..b8c9138 100644 --- a/guides/setups/operating-systems/apps-demo/activate +++ b/guides/setups/operating-systems/apps-demo/activate @@ -31,11 +31,4 @@ _apps_XDG_DATA_DIRS=$( )) IFS=: eval 'echo "${datadirs[*]}"' ) -export XDG_DATA_DIRS=$( - if test "${XDG_DATA_DIRS}" - then - echo "${_apps_XDG_DATA_DIRS}:${XDG_DATA_DIRS}" - else - echo "${_apps_XDG_DATA_DIRS}" - fi -) +export XDG_DATA_DIRS="${_apps_XDG_DATA_DIRS}:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" |
