Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Support no gui server? #80

Open
shenmishajing opened this issue Jun 9, 2024 · 0 comments
Open

[Feature request] Support no gui server? #80

shenmishajing opened this issue Jun 9, 2024 · 0 comments

Comments

@shenmishajing
Copy link

Now, we use PyQt to login, which requires the GUI interface. On a no GUI server, any command, not only the login command, will result in an error as follows since we try to import PySide6 at the top of olsync.py.

ImportError: /usr/lib/x86_64-linux-gnu/libwayland-server.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

After reading the source code of ols, I find that the following information is enough for ols:

{
    "cookie": {
        "overleaf_session2": "xxx",
        "GCLB": "xxx"
    },
    "csrf": "xxx"
}

All those cookies and csrf can be found manually. So, we can ask the user to provide a json or a .oauth to login instead of requiring the pyqt package to open a browser.

A simple solution is as follows:

  1. move the import olbrowserlogin statement from the top of olsync.py to the function login_handler.
  2. use a json file as the .oauth instead of pickle file.

How do you think about this? Will we support this? I can create a PR for this if we want to add this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant