summarylogtreecommitdiffstats
path: root/bluemail.sh
blob: b3c0932c9efd3fa93aa908d2d91879563b0e8737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

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

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

# Launch
# Currently, the application is broken under Wayland and requires --no-sandbox to launch.
# --ozone-platform=x11 and --no-sandbox flags are enforced to workaround this.
# To be removed after Bluemail updates their Electron (which is still at v13.3.0...)
exec /opt/bluemail/bluemail $BLUEMAIL_USER_FLAGS --no-sandbox --ozone-platform=x11 "$@"