Closed tobfromme closed 1 year ago
sigh You know, this happened before. I troubleshoot for a long time, come up short, so I open an issue, then suddenly I find an answer.
To solve, make the script to run the flatpak look like this:
#!/bin/sh
flatpak run com.google.Chrome
Ok, I am glad you found a fix.
This issue is due to the way the python process launches a new chrome instance. It is expecting to launch an executable called "chrome" or similar directly. It expects a path to a file on the system.
When run a Flatpak app, you actually are launching the flatpak
program and passing command line parameters 'run'
and 'com.google.Chrome'
. I don't use flatpak myself, but I am assuming that additional arguments to the flatpak command are passed to the running process.
You may need to format your script like flatpack run com.google.Chrome -- $@
or similar depending on how flatpak handles arguments sent to the launched process. This will be necessary to launch chrome with the --user-agent
flag that the script uses to set a mobile user agent.
This is an odd one. I tried to install Chrome via Flatpak ( https://flathub.org/apps/com.google.Chrome ).
You'll notice the command to execute it is
flatpak run com.google.Chrome
. However, bing-rewards doesn't like this:I tried putting the flatpak command in a script, but it errors differently:
Any idea what "Exec format error" may mean? It would help me get around this.