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

Cannot log in to Proton Mail in Thunderbird with Hydroxide running as a service #263

Closed
dodo-the-dev opened this issue Oct 11, 2023 · 2 comments

Comments

@dodo-the-dev
Copy link

I have run the set up as per the readme and followed the guidance on one of the issues for people not being able to log in to Proton using their full username (use the first bit before @ first) #253 and that worked great.

The only downside was that I had to open a terminal window and run hydroxide serve before I could download my email. So I tried to run the hydroxide.service using Systemd and it ran fine, but when I then try and log in using Thunderbird, it said the password was incorrect. I ran hydroxide auth [username] again, got a new bridge password and put that in Thunderbird, but it wasn't having it.

I tried uninstalling Hydroxide and re-installing it (from AUR) and when I ran hydroxide status I was already logged in without having to log in again after a clean install (I'm guessing there's a file somewhere that holds all my details that wasn't deleted when I removed it using yay -Rs hydroxide).
If I disable the service and run hydroxide serve it works fine, it's like the hydroxide.service isn't pointing to the same authentication file created by manually running hydroxide serve.

Is there a way to point the hydroxide.service to the same auth file, or have I done something wrong?

Thanks and apologies in advance

@ma-04
Copy link

ma-04 commented Oct 11, 2023

By default, systemd operates with root privileges so it stores file in the /root/ directory, whereas if you manually run Hydroxide as a standard user, the necessary files will be stored in the home directory of that user.

If you want systemd (running as root) to access your already authenticated protonmail users, you have two options:
Run systemd as a user by using the --user flag. This will require placing the systemd service in the user directory. Or
Move/ create a link to your current user’s Hydroxide config from the root user directory.

edit: clarification

@dodo-the-dev
Copy link
Author

Well, I think that's the quickest resolustion I've ever had to an issue in Git Hub 🤣

Thank you so much, that resolved the issue, sorry if it seemed a completely newb question, but TIL

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

2 participants