summarylogtreecommitdiffstats
path: root/anytype.sh
blob: 72192d4ce1937f316b0e7a53e7daf3220a1b0543 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"

if [[ -f "$XDG_CONFIG_HOME/anytype-flags.conf" ]]; then
  ANYTPE_USER_FLAGS="$(grep -v '^#' "$XDG_CONFIG_HOME/anytype-flags.conf")"
fi

# Launch
export ELECTRON_IS_DEV=0
exec /opt/Anytype/anytype $ANYTPE_USER_FLAGS "$@"