Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frontend.XF.GTK: throw exception when user is root
An error occurs when geewallet is run with root permissions, thus it’s necessary to restrict users from running it as root: ``` update.go:85: cannot change mount namespace according to change mount (/snap/gtk-common-themes/1534/share/gtk2/Materia-compact /snap/geewallet/x1/data-dir/themes/Materia-compact none bind,ro 0 0): cannot write to "/snap/gtk-common-themes/1534/share/gtk2/Materia-compact" because it would affect the host in "/snap" update.go:85: cannot change mount namespace according to change mount (/snap/gtk-common-themes/1534/share/gtk2/Materia-dark-compact /snap/geewallet/x1/data-dir/themes/Materia-dark-compact none bind,ro 0 0): cannot write to "/snap/gtk-common-themes/1534/share/gtk2/Materia-dark-compact" because it would affect the host in "/snap" update.go:85: cannot change mount namespace according to change mount (/snap/gtk-common-themes/1534/share/gtk2/Yaru-MATE-dark /snap/geewallet/x1/data-dir/themes/Yaru-MATE-dark none bind,ro 0 0): cannot use "/snap/gtk-common-themes/1534/share/gtk2/Yaru-MATE-dark" as bind-mount source: not a directory update.go:85: cannot change mount namespace according to change mount (/snap/gtk-common-themes/1534/share/gtk2/Yaru-MATE-light /snap/geewallet/x1/data-dir/themes/Yaru-MATE-light none bind,ro 0 0): cannot use "/snap/gtk-common-themes/1534/share/gtk2/Yaru-MATE-light" as bind-mount source: not a directory mkdir: cannot create directory ‘/run/user/0’: Permission denied realpath: '': No such file or directory realpath: '': No such file or directory realpath: '': No such file or directory realpath: '': No such file or directory realpath: '': No such file or directory realpath: '': No such file or directory realpath: '': No such file or directory realpath: '': No such file or directory Authorization required, but no authorization protocol specified (geewallet:5797): Gtk-WARNING **: 09:01:13.760: cannot open display: :0 ```
- Loading branch information