type xhost +si:localuser:root in the terminal before launching gparted

type gparted-pkexec