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

Chromium does not load profiles correctly #275

Closed
ohoeffleur opened this issue Jul 4, 2022 · 1 comment · Fixed by #321
Closed

Chromium does not load profiles correctly #275

ohoeffleur opened this issue Jul 4, 2022 · 1 comment · Fixed by #321

Comments

@ohoeffleur
Copy link

Feature Request
Support Chromium profiles. It seems that finicky does not properly access profiles for Chromium. Chromium is always opens with the latest profile used.

Observed Problem
Despite the config-file being correct and the logs stating which Profile would be used with Chromium (i.e. correct rule for URL), the app always uses the last profile used.

  • Chromium correctly opens the profiles when launched via console (i.e. open -a "Chromium" --args -profile-directory="Profile 2")
  • The configuration seems correct, since finicky logs that it would open the corresponding profile:
MacOS ./Finicky
Start listening to file changes
Reloading config
Valid config ✅
Checking for updates:
    Current version: v3.4.0
    Available version: v3.4.0
    Latest version seen: v3.4.0
2022-07-04 14:30:04.324 Finicky[5159:217219] Opening https://mycompany.sharepoint.com/:w:/g/EXIthisisallhiddenfromyou?e=secret from Mail
	bundleId: com.apple.mail
	path: /System/Applications/Mail.app/Contents/MacOS/Mail
2022-07-04 14:30:04.328 Finicky[5159:217219] opening default profile
Opening org.chromium.Chromium at: https://mycompany.sharepoint.com/:w:/g/EXIthisisallhiddenfromyou?e=secret
2022-07-04 14:30:44.355 Finicky[5159:217219] Opening https://anothercompanyprofile.sharepoint.com/:f:/r/sites/anothercompany.services/Freigegebene                   0okumente/Entscheidung?csf=1&web=1&e=ZtiTo7 from Mail
	bundleId: com.apple.mail
	path: /System/Applications/Mail.app/Contents/MacOS/Mail
2022-07-04 14:30:44.359 Finicky[5159:217219] opening anothercompany profile 2
Opening org.chromium.Chromium at: https://anothercompanyprofile.sharepoint.com/:f:/r/sites/anothercompany.services/Freigegebene%20Dokumente/Entscheidung?csf=1&web=1&e=ZtiTo7

  • The relevant config parts:
        {
            // Agilist
            match: ["anothercompanyprofile.sharepoint.com/*"],
            browser: () => {
                finicky.log("opening anothercompany profile 2");
                return {
                    name: "Chromium",
                    profile: "Profile 2"
                }
            }
        },

        {
            match: ["https://mycompany.sharepoint.com/*"],
            browser: () => {
                finicky.log("opening default profile");
                return {
                    name: "Chromium",
                    profile: "Default"
                }
            }
        },
@azuenko
Copy link
Contributor

azuenko commented Sep 6, 2022

That would be indeed a good fix.

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