Microsoft wants Edge to automatically open by default every time you turn on your Windows 11 PC
(www.windowscentral.com)
Please use $HOME instead of this. There are configurations that do not rely on the usual /home/$USER format. The root user is a good example, having their $HOME set to /root.