Skip to content

SamuelLouf/Geolocation: mark as not supported in desktop app#2564

Merged
GarboMuffin merged 2 commits into
masterfrom
geolocation-not-in-desktop-app
Jul 6, 2026
Merged

SamuelLouf/Geolocation: mark as not supported in desktop app#2564
GarboMuffin merged 2 commits into
masterfrom
geolocation-not-in-desktop-app

Conversation

@GarboMuffin

@GarboMuffin GarboMuffin commented Jul 6, 2026

Copy link
Copy Markdown
Member

In Electron, the geolocation APIs don't work unless we provide a GOOGLE_API_KEY with billing enabled for Google to charge per request. This key has to be embedded in plain text in every copy of the desktop app too, so it's public and anyone could start putting a lot of usage on it overnight. Don't really want to fund that, so it's just not going to work there. That'll include the desktop app and packaged Electron projects.

For the desktop app, making this work on macOS would also probably require the location services entitlement. I don't really want to try explaining to App Store Review why the app needs location services without having some good explanation of what people are doing with this thing.

@GarboMuffin
GarboMuffin requested a review from a team as a code owner July 6, 2026 01:22
@github-actions github-actions Bot added the pr: change existing extension Pull requests that change an existing extension label Jul 6, 2026
@GarboMuffin

Copy link
Copy Markdown
Member Author

!format

@GarboMuffin
GarboMuffin merged commit 42f6c8e into master Jul 6, 2026
4 checks passed
@GarboMuffin
GarboMuffin deleted the geolocation-not-in-desktop-app branch July 6, 2026 01:31
@GarboMuffin

GarboMuffin commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

It was already disabled in the desktop app via security manager: https://github.com/TurboWarp/desktop/blob/f0b8f21854222e889c8d7931b5e024d032464f37/src-renderer-webpack/editor/gui/desktop-hoc.jsx#L73

And the desktop app's permission checks deny all unneeded permissions, such as location.

This change makes it properly report as not supported at all (not just not allowed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: change existing extension Pull requests that change an existing extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants