-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathrun
More file actions
executable file
·27 lines (20 loc) · 813 Bytes
/
Copy pathrun
File metadata and controls
executable file
·27 lines (20 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
# Start the FAF client
basedir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
cd "$basedir"
source ./common.sh
load-env
if [[ "$ice_adapter_debug" == "1" ]]; then
export SHOW_ICE_ADAPTER_DEBUG_WINDOW="true"
fi
export INSTALL4J_JAVA_HOME="$basedir/$java_path"
# fork updater into background
./update.sh autoupdate-notify &
if [[ "$XDG_CURRENT_DESKTOP" = "Unity" ]]; then
# need this on Gnome for some absurd reason because otherwise AWT just hangs forever on some XTaskbar code
# see also <https://github.com/openjdk/jdk/blob/d3e5304c0f70aa03a52f5449cb38645a184b23dc/src/java.desktop/unix/classes/sun/awt/X11/XTaskbarPeer.java#L43-L46>
export XDG_CURRENT_DESKTOP=whatever
fi
cd "$dfc_path"
# do NOT run in container because container is missing gtk!
exec ./faf-client