Skip to content

There might be a problem with main.sh script? #159

@apeir-n

Description

@apeir-n

I'm running Void Linux. I was initially unable to connect pywalfox to the firefox, and I was looking in the browser console, and it seemed to be failing in main.sh. The script in the distribution looks like this:

!/usr/bin/env bash

 Checks OS Version Number
macOS=$(sw_vers -productVersion)
if [[ ${#macOS} > 0  ]]; then
    PATH="$PATH:/usr/local/bin"
    pywalfox start
fi

python -m pywalfox start || python3 -m pywalfox start || python2.7 -m pywalfox start || python3.9 -m pywalfox start

It couldn't find sw_vers obviously, but the pywalfox commands were failing when they were trying to be run by the various python interpreters. But there's already a shebang pointing to python in the actual pywalfox executable file, so I commented everything out and replaced it with /home/$USER/.local/bin/pywalfox start and it worked fine.

Maybe it's because I used pipx instead of pip, since pip is always such a chore to use for me for some reason. The shebang in pywalfox is #!/home/[my user]/.local/share/pipx/venvs/pywalfox/bin/python, which itself is a symlink to /usr/bin/python3.13. But in any case, calling the pywalfox executable with the python interpreter seemed to be the problem, I'm assuming because the shebang was already taking care of calling the interpreter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions