sttz / expresso

expresso is a command line interface to control the ExpressVPN app
MIT License
63 stars 11 forks source link

Windows invalid extension Id case #7

Closed havid0707 closed 3 years ago

havid0707 commented 3 years ago

Hi @sttz ,

The structure of manifest as below: struct NativeMessagingManifest { public string name; public string description; public string path; public string type; public string[] allowed_extensions; }

But my windows10 com.expressvpn.helper.json as Below: { "name": "com.expressvpn.helper", "description": "ExpressVPN Chrome Helper", "path": "C:\Program Files (x86)\ExpressVPN\expressvpnd\expressvpn-browser-helper.exe", "type": "stdio", "allowed_origins": [ "chrome-extension://fgddmllnllkalaagkghckoinaemmogpe/", "chrome-extension://olhkmmhcabcohlcodnbkfoekafimgkmb/", "chrome-extension://gicmddjpmepnbabhkhihlgdfccbppflm/" ] }

If I change allowed_origins to allowed_extensions, the program still promt "invalid chrome extendsion id!" I have check the extendsion installed in chrome, it is the first one in the list. May I know this program tested under windows? or this program only compatible with specific version ExpressVPN?

havid0707 commented 3 years ago

In Widnows, the origins is the first parameter. I solved this by Google

sttz commented 3 years ago

Yeah, I've only tested on macOS. If you get it running on Windows, a PR would be welcome!

darek292 commented 3 years ago

In Widnows, the origins is the first parameter. I solved this by Google

Could you share your solution if possible? I'm looking for a CLI client as well on Windows as I need to reconnect programmatically with ExpressVPN

lord-ne commented 3 years ago

I've somewhat solved this. You need to change all references to "com.expressvpn.helper" to "com.expressvpn.helper.firefox". On Windows they are two separate files. You also need to add "C:/Program Files (x86)/ExpressVPN/expressvpnd" to the variable manifestBasePaths.