Move desktop modules permission methods into permission provider.