johnste / finicky

A macOS app for customizing which browser to start
MIT License
3.67k stars 136 forks source link

Chromium does not load profiles correctly #275

Closed ohoeffleur closed 8 months ago

ohoeffleur commented 2 years ago

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.

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
        {
            // 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 commented 2 years ago

That would be indeed a good fix.