-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Allow setting Firefox profile path so jupynium can remember passwd or token #17
Comments
Hi, I can add an option to set the profile directory, with expanding Thanks for the feedback! |
Do you also have the file |
Just knew I usually connect to a remote hosted notebook, so I guess #12 does not help me a lot? |
I see, actually for me I do both a lot. I'll make the profile option available soon |
This has been implemented. Please try and let me know! Thanks for such a cool suggestion! |
The default profile for me seems not as expected, it's look like
And I have to manually set profile0 default as 1 and delete that for profile 1. That's not a big deal but worth noting. However, that function works fine for me out of neovim:
But in :JupyniumStartAndAttachToServer it still open a firefox which profile located in a random tmp dir. Edit: I check about:profiles for start jupynium in and out neovim, they are identical, but if open under neovim, the language setting and add-ons are disapper and looks like a brand new firefox. |
I put the option in the nvim setup as well. Can you pass Or maybe the require("jupynium").setup({
-- Used to remember the last session (password etc.).
-- You may need to change the path.
firefox_profiles_ini_path = vim.fn.isdirectory(vim.fn.expand "~/snap/firefox/common/.mozilla/firefox")
and "~/snap/firefox/common/.mozilla/firefox/profiles.ini"
or "~/.mozilla/firefox/profiles.ini",
firefox_profile_name = "default-release", -- nil means the default profile
}) |
Weird thing is Lua style conditional operator break something, I have to explicitly set
And then the behavior of ":JupyniumStartAndAttachToServer " and "jupynium" in cli agree. (Otherwise the previous one will open firefox without add-ons, settings, account, etc, but Not sure if I'm the only one with this problem, I think you can ignore it until someone else report the same issue if you cannot reproduce. |
Maybe you also have the snap directory? Or is my code just wrong.. |
I have play jupynium for a while and it works like a charm, however I found it's annoying to enter token(passwd) everytime. A simple but less elegant way is to make selenium refer to default profile:
the directory can be found by https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_how-do-i-find-my-profile. ("~" refer to home seems not work for me btw).
This is good enough for me, but I'm sure you have better ideas :)
The text was updated successfully, but these errors were encountered: