hmlendea / gfn-electron

Linux Desktop client for Nvidia's GeForce NOW game streaming service
GNU General Public License v3.0
522 stars 63 forks source link

Fix UA spoofing, add --lang #176

Closed chriskaya closed 1 year ago

chriskaya commented 1 year ago

Hi there,

I have an AZERTY keyboard, and I could not get it to work even with --spoof-chromeos or --spoof-windows. Also, every time I start a game it's in English, and I have to manually change its lang to French. I tried Flatpak, Snap, and from source.

It seems that they don't only rely on the User Agent, but on the navigator properties as well (navigator.userAgent, navigator.platform, etc.). So I implemented a way to override those properties, and I also added a way to override language, by adding a --lang command line option.

--lang and --spoof-windows work fine, but I still can't change keyboard mapping with --spoof-chromeos, so I guess I'm missing something. I don't have a Chromebook myself so I con't go further. Maybe someone will be able to fix it?

chriskaya commented 1 year ago

I was thinking, maybe we could set Windows as default (or Chrome OS if we get kb select to work)

chriskaya commented 1 year ago

This is not working anymore, don't merge, I'll fix