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

Support multiple/custom profiles for e.g. Firefox #359

Open
rieje opened this issue May 24, 2023 · 2 comments
Open

Support multiple/custom profiles for e.g. Firefox #359

rieje opened this issue May 24, 2023 · 2 comments

Comments

@rieje
Copy link

rieje commented May 24, 2023

Very excited to come across this plugin as that's what I've been looking for my in Firefox using multiple profiles. However, I don't have profiles saved to ~/.mozilla and instead they are in ~/.firejail. I assume PSD just looks at the default profile location for each browser. In my case, I have e.g.:

~/.firejail/firefox-school/.mozilla/firefox
~/.firejail/firefox-work/.mozilla/firefox
~/.firejail/firefox-shopping/.mozilla/firefox
~/.firejail/firefox-travel/.mozilla/firefox

etc. where each of those directories has a folder called main and a profiles.ini with e.g.

[Profile0]
Name=main
IsRelative=1
Path=main
Default=1

To go into more details: I use a Firefox wrapper to start Firefox using Firejail for those persistent profiles. Firejail with persistent profiles simply treats e.g. ~/.firejail/firefox-school/ as the new $HOME for sandboxing purposes so it should not conflict with PSD--it only houses the necessities like .mozilla, .cache, .local, etc. specific to that Firefox profile instance.

I attempted a very basic tweak to see if I can get PSD to see the profiles with psd parse in this file by modifying the condition:

if [[ -d "$HOME"/.mozilla/firefox ]]  || [[ -d "$HOME"/.firejail/firefox-school/.mozilla/firefox ]]; then

but it still only detects the default non-sandboxed Firefox ~/.mozilla which I never use.

@debnath-d
Copy link

I would also like to see support for custom profile paths

@debnath-d
Copy link

I was wrong. It already detects custom profile paths mentioned in ~/.mozilla/firefox/profiles.ini

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