mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Now the script is conforms to POSIX shell script which is universal on all linux. Also make it executable.
13 lines
464 B
Bash
Executable file
13 lines
464 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# this file is called from AppRun so 'root_dir' will point to where AppRun is
|
|
root_dir="$(readlink -f "$(dirname "$0")")"
|
|
|
|
# Insert the default values because after the test we prepend our path
|
|
# and it will create problems with DEs (eg KDE) that don't set the variable
|
|
# and rely on the default paths
|
|
if [ -z "${XDG_DATA_DIRS}" ]; then
|
|
XDG_DATA_DIRS="/usr/local/share/:/usr/share/"
|
|
fi
|
|
|
|
export XDG_DATA_DIRS="${root_dir}/usr/share:${XDG_DATA_DIRS}"
|