finicky
finicky copied to clipboard
Display the profile used when debugging in the console
I'm trying to configure finicky to open certain URLs in a different google chrome profile. It's hard to debug with the console because it only prints the name of the browser, and not the profile (assuming my config is not wrong). Could it also print profile being selected (if any)?
My config:
module.exports = {
defaultBrowser: {
name: "Google Chrome",
profile: "Profile 2",
},
handlers: [
{
// Open apple.com and example.org urls in Safari
match: ["mycompany.com/*", "example.org/*"],
browser: {
name: "Google Chrome",
profile: "Profile 2",
},
},
],
};
You could try something like this to see when the handler is being matched!
module.exports = {
defaultBrowser: {
name: "Google Chrome",
profile: "Profile 2",
},
handlers: [
{
// Open apple.com and example.org urls in Safari
match: ["mycompany.com/*", "example.org/*"],
browser: () => {
finicky.log("opening profile 2");
return {
name: "Google Chrome",
profile: "Profile 2",
}
},
},
],
};
Let me know if you still have problems. :)
Interesting, ok missed that. I ended up using finicky.notify("Recieved url", urlString);
stolen from another example, but .log
is better. Still might be nice if it did that by default.
Yeah I agree. Will consider when I update the preferences window next.
@nynexman4464 How do you turn on the Finicky Console? Can't find any docs on that
@nynexman4464 How do you turn on the Finicky Console? Can't find any docs on that
Never mind, found it. I had turned off the menubar icon long ago. So I didn't remember it existed and I had to re-enable it to get to the console for debugging