Fix permission denied issue when launching from a notification