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

XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}

# Allow users to override command-line options
if [[ -f $XDG_CONFIG_HOME/xmind-flags.conf ]]; then
   XMIND_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/xmind-flags.conf | tr '\n' ' ')"
fi

# Launch
exec /opt/Xmind/xmind "$@" $XMIND_USER_FLAGS