Errors when running autovpn.sh script

Im trying to run this command to make it so my vpn auto connects on boot:

sudo gedit /rw/config/autovpn.sh

I am entering this into the file:

#!/bin/bash
while [ “true” ]
do
if nmcli con |grep -Fq tun0
then
echo “Already connected, sleeping 5”
sleep 5
else
echo “Connecting”
nmcli con up mullvad_us_sjc
fi
done

I am following this guide:

when I save the text file I get these errors:

(gedit:1892): Gdk-CRITICAL **: 20:43:56.274: gdk_atom_intern: assertion ‘atom_name != NULL’ failed

(gedit:1892): Gdk-CRITICAL **: 20:43:56.275: gdk_atom_intern: assertion ‘atom_name != NULL’ failed

(gedit:1892): dconf-WARNING **: 20:43:56.299: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:1892): dconf-WARNING **: 20:43:56.301: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:1892): dconf-WARNING **: 20:43:56.387: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:1892): dconf-WARNING **: 20:43:56.387: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:1892): dconf-WARNING **: 20:43:56.387: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

** (gedit:1892): WARNING **: 20:45:52.285: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported

** (gedit:1892): WARNING **: 20:45:52.285: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

** (gedit:1892): WARNING **: 20:45:59.322: Set document metadata failed: Setting attribute metadata::gedit-position not supported

(gedit:1892): dconf-WARNING **: 20:45:59.328: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
[user@MullvadVPN ~]$ sudo gedit /rw/config/autovpn.sh~

(gedit:1922): Gdk-CRITICAL **: 20:46:25.033: gdk_atom_intern: assertion ‘atom_name != NULL’ failed

(gedit:1922): Gdk-CRITICAL **: 20:46:25.034: gdk_atom_intern: assertion ‘atom_name != NULL’ failed

(gedit:1922): dconf-WARNING **: 20:46:25.057: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:1922): dconf-WARNING **: 20:46:25.059: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:1922): dconf-WARNING **: 20:46:25.112: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:1922): dconf-WARNING **: 20:46:25.112: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:1922): dconf-WARNING **: 20:46:25.113: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

** (gedit:1922): WARNING **: 20:46:33.446: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported

** (gedit:1922): WARNING **: 20:46:33.446: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

** (gedit:1922): WARNING **: 20:46:37.100: Set document metadata failed: Setting attribute metadata::gedit-position not supported

(gedit:1922): dconf-WARNING **: 20:46:37.106: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

Any suggestions? Thank you in advance.