Give better GOA integration for Nextcloud when credentials expire
Seems when credentials expire there is a generic error shown. However other apps like Evolution or Photos (#255 (comment 56395)) show a custom error with a link to open GOA, which is more helpful.
We could do something similar. We need to:
-
- Figure out if there is a special error fired from GOA that we can identify Nextcloud/GDrive/etc. -
- Figure out if the scheme could be enough info -
- Once we get the error, open GNOME control center with the goa account. This can be done with g_app_info, if now we have access inside flatpak since we have 'host' permission, and if not it will require dbus API in gcc -
- Think if we can do the same for libcloudproviders, once Nextcloud client gets support for GOA
cc/ @debarshir
Edited by Carlos Soriano