Handle snaps the same way as flatpaks
Use the secret portal when we are in a snap environment, there is no file to check but a common way is to check if SNAP_NAME is defined in the environment
Use the secret portal when we are in a snap environment, there is no file to check but a common way is to check if SNAP_NAME is defined in the environment