So on my XFCE i cannot click on shutdown or restart, both buttons are greyed out.
So I check the information with this command pkg info -D xfce4-session
which gives this information.
So I created a new rule file known as shutdown.rules
and put the following contents inside the file.
there is no need to restart and the restart and shutdown become enabled.