.github/workflows/helper/appimage/export_vars.sh
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | # this file is called from AppRun so 'root_dir' will point to where AppRun is |
| 4 | root_dir="$(readlink -f "$(dirname "$0")")" |
| 5 | |
| 6 | # Insert the default values because after the test we prepend our path |
| 7 | # and it will create problems with DEs (eg KDE) that don't set the variable |
| 8 | # and rely on the default paths |
| 9 | if [ -z "${XDG_DATA_DIRS}" ]; then |
| 10 | XDG_DATA_DIRS="/usr/local/share/:/usr/share/" |
| 11 | fi |
| 12 | |
| 13 | export XDG_DATA_DIRS="${root_dir}/usr/share:${XDG_DATA_DIRS}" |