From 0d4ab86ea28f894ca2a16f93b37768c60872b208 Mon Sep 17 00:00:00 2001 From: Faraphel Date: Tue, 6 Sep 2022 14:07:36 +0200 Subject: [PATCH] linux check were not done correctly for gui --- source/interface/gui/install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/interface/gui/install.py b/source/interface/gui/install.py index fa8b184..b6cd6e1 100644 --- a/source/interface/gui/install.py +++ b/source/interface/gui/install.py @@ -387,11 +387,11 @@ class ButtonInstall(ttk.Button): _("WARNING_LOW_SPACE_CONTINUE") % (destination_path.resolve().drive, available_space_destination/Go) ): return - if is_user_root(): + if not is_user_root(): if not messagebox.askokcancel(_("WARNING"), _("WARNING_NOT_ROOT")): return - if are_permissions_enabled(): + if not are_permissions_enabled(): # check if writing (for the /.cache/) and execution (for /tools/) are allowed if not messagebox.askokcancel(_("WARNING"), _("WARNING_INSTALLER_PERMISSION")): return