A community-driven solution to resolve critical authentication issues between KDE Plasma desktop environments and Google services integration.
This repository addresses two critical authentication issues affecting KDE users across multiple distributions:
- "This browser or app is not secure" error during login
- "This app is blocked" error when accessing Google Drive
The solution involves strategic configuration modifications validated across six major Linux distributions.
- KDE Plasma 5.24+ environment
kaccounts-integration
package installed- Active internet connection
curl -sSL https://raw.githubusercontent.com/Amm1rr/Fix-Google-Account-on-KDE/main/fix_kde_google_integration.sh | bash
kquitapp6 kded6 # Restart KDE core services
systemctl --user restart plasma-kglobalaccel # Refresh desktop services
Error Message:
"This browser or app is not secure"
Affected Systems:
Arch Linux and derivatives using signon-ui
package
Root Cause:
The fake-user-agent.patch
in signon-ui
modifies browser headers in a way that triggers Google's security checks.
Solution:
Package rebuild without the problematic patch:
# Example for Arch-based systems
asp export signon-ui
cd signon-ui/trunk
sed -i '/fake-user-agent.patch/d' PKGBUILD
makepkg -si
Error Message:
"This app is blocked"
Affected Systems:
All Linux distributions using KDE 5.24+
Root Cause:
Invalid OAuth Client ID in KDE's Google provider configuration:
317066460457-pkpkedrvt2ldq6g2hj1egfka2n7vpuoo.apps.googleusercontent.com
Solution:
Replace with GNOME's validated Client ID:
45471411055-ornt4svd2miog6dnopve7qtmh5mnu6id.apps.googleusercontent.com
The script performs the following critical modifications:
-
Configuration Replacement:
/usr/share/accounts/providers/kde/google.provider
- Replaces KDE's client ID with GNOME's validated credentials
- Updates OAuth scopes for proper Drive integration
-
Scope Modifications:
; Before ServiceScopes=https://www.googleapis.com/auth/drive ; After ServiceScopes=https://www.googleapis.com/auth/drive.file
-
Safety Measures:
# Create timestamped backups cp /usr/share/accounts/providers/kde/google.provider{,.bak_$(date +%s)}
After KDE framework updates, re-run the script to:
- Check configuration integrity
- Reapply necessary modifications
- Validate service permissions
/usr/share/accounts/providers/kde/
├── google.provider # Main configuration
└── google-drive.provider # Drive-specific settings
Parameter | Original Value | Modified Value |
---|---|---|
ClientId | KDE-specific OAuth ID | GNOME OAuth ID |
ServiceScopes | Full Drive access | Restricted file-specific access |
UserAgent | KDE-specific agent string | GNOME-compatible agent string |
-
Permission Denied:
sudo chmod +x /usr/share/accounts/providers/kde/google.provider
-
Partial Drive Access: Re-authenticate through KDE System Settings > Online Accounts
-
Post-Update Failures:
sudo pacman -Syu kaccounts-integration curl -sSL https://raw.githubusercontent.com/Amm1rr/Fix-Google-Account-on-KDE/main/fix_kde_google_integration.sh | bash
Special thanks to Bruno Gonçalves for initial problem diagnosis and solution prototype.