To install the official Microsoft Edge browser using Flatpak, execute the following commands in your terminal:
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.microsoft.Edge
Choosing Flatpak for the installation instead of directly downloading and installing DEB packages offers advantages. For instance, Flatpak simplifies the update process, making it easier to keep applications like Microsoft Edge up to date with the latest versions.
It's important to note that applications installed via Flatpak are sandboxed, which restricts their access to system files. This restriction can lead to issues, such as the inability to use the drag-and-drop feature or open/view local files. To mitigate this, consider adjusting the default sandbox permissions with these commands:
flatpak override --user --filesystem=home com.microsoft.Edge
flatpak override --user --filesystem=/media --filesystem=/mnt com.microsoft.Edge