johnste / finicky

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

Finicky is closing automatically after clicking any link #318

Closed adrianoresende closed 11 months ago

adrianoresende commented 11 months ago

Describe the bug Once, it worked fine with the new version of macOS Sonoma, but one day, I restarted the Macbook, and now it is closing automatically. I deleted and reinstalled the app, which is not solved; does the app have any cache on some folder? Maybe deleting it can solve it.

I tried these ways:

  1. deleting the config on ~/
  2. reinstalling
  3. change the browser default on the preference system
ghost commented 11 months ago

Hi there. I'm not a programmer or anything, but have been using this little app for a while. My mac also got updated with Sonoma and I had that issue also. Maybe you've tried these steps, but what I had to do is copy the config file (.js) out. Set finicky to be the default browser in system settings. And then I had to do a create new... and then copy the original script into the new file and save. So far it has solved my issue, hope this helps!!

adrianoresende commented 11 months ago

Hi there. I'm not a programmer or anything, but have been using this little app for a while. My mac also got updated with Sonoma and I had that issue also. Maybe you've tried these steps, but what I had to do is copy the config file (.js) out. Set finicky to be the default browser in system settings. And then I had to do a create new... and then copy the original script into the new file and save. So far it has solved my issue, hope this helps!!

But I deleted the config, and it not is creating anymore; I don't find it on ~/ I don't know how I discovered the cache (exists?).

ghost commented 11 months ago

hmmm... yeah, I'm just a dumb user and just use the app. My config file is simple. What I just tested is that the xxx.js file loaded is where it looks at it. I could be wrong, I don't think there's a cache. So, if I load kenny.js as the new file. and then you click on Config-Reveal in finder, it will open the folder where kenny.js is. and if I move kenny.js somewhere else, Config-Reveal in Finder opens the new location. So to me, it seems like kenny.js needs to exist somewhere locally on your mac. These are my contents.... i hope it helps.

// Use https://finicky-kickstart.now.sh to generate basic configuration
// Learn more about configuration options: https://github.com/johnste/finicky/wiki/Configuration

module.exports = {
    defaultBrowser: "Firefox",
    handlers: [
      {
        // Open google.com and *.google.com urls in Google Chrome
        match: [
          "google.com*", // match google.com urls
          finicky.matchDomains(/.*\.google.com/) // use helper function to match on domain only
        ],
        browser: "Google Chrome"
      },
      {
        // You can get the path of the process that triggered Finicky (EXPERIMENTAL)
        match: ({ opener }) =>
        opener.path && opener.path.startsWith("/System/Applications/Mail.app"),
        browser: "Google Chrome"
      },
      {
        // You can get the path of the process that triggered Finicky (EXPERIMENTAL)
        match: ({ opener }) =>
        opener.path && opener.path.startsWith("/System/Applications/Messages.app"),
        browser: "Google Chrome"
      },
      {
        // You can get the path of the process that triggered Finicky (EXPERIMENTAL)
        match: ({ opener }) =>
        opener.path && opener.path.startsWith("/Applications/Microsoft Outlook.app"),
        browser: "Firefox"
      },
    ]
  }
adrianoresende commented 11 months ago

I appreciate your help. The biggest problem is that the icon doesn't appear on the menu bar because my config was hiding the icon. I'm trying to show the icon without config, and I changed the code inside the app, but it doesn't work. I will try to uninstall with any app that removes any relation to the files.

🚨 Update: With App Cleaner, it doesn't work. I don't know how to show the icon anymore, or it's a bug that doesn't create the config automatically.

jbleuzen commented 11 months ago

May I suggest to use the previous version ? Had bugs with the latest but with 3.3.1 everything works as expected in Sonoma as well !

adrianoresende commented 11 months ago

May I suggest to use the previous version ? Had bugs with the latest but with 3.3.1 everything works as expected in Sonoma as well !

Thank you for suggestion. Unfortunately with version 3.3.1 doesn't work, same behavior.

adrianoresende commented 11 months ago

After I enabled the notification after reinstalling, that may be why it doesn't work.

image

But the file exists. How do I change the path, to default? Changing to ~/

ghost commented 11 months ago

is the dot supposed to be there as part of the file name?

On 10/4/2023 5:20:22 PM, Adriano Resende @.> wrote: After I enabled the notification after reinstalling, that may be why it doesn't work. [image] [https://user-images.githubusercontent.com/798755/272712788-ec4a1cfb-3e12-4dc5-a7d9-c37170897b88.png] The file exists. How do I change the path? — Reply to this email directly, view it on GitHub [https://github.com/johnste/finicky/issues/318#issuecomment-1747658573], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AHB6XJY3JS6X5JPWV3NBE5LX5XHJBAVCNFSM6AAAAAA5STRHP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBXGY2TQNJXGM]. You are receiving this because you commented.Message ID: @.> [24c7af10-415c-47a4-ac1c-04dd46599a92]

adrianoresende commented 11 months ago

@guyindc

When I removed the dot, the error persisted, but with the path changed, without the dot. So, I tried to move to another folder, and the path on the error was changed.

It's bizarre.

And I moved to ~/, and it worked. 😯🤷‍♂️

ghost commented 11 months ago

YAYY!!!! :)

On 10/4/2023 9:00:18 PM, Adriano Resende @.> wrote: @guyindc [https://github.com/guyindc] When I removed the dot, the error persisted, but with the path changed, without the dot. So, I tried to move to another folder, but the path on the error was changed. It's bizarre. And I moved to ~/, and it worked. 😯🤷‍♂️ — Reply to this email directly, view it on GitHub [https://github.com/johnste/finicky/issues/318#issuecomment-1747871853], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AHB6XJ435IS4OORWWK2TDMLX5YBB3AVCNFSM6AAAAAA5STRHP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBXHA3TCOBVGM]. You are receiving this because you were mentioned.Message ID: @.> [54ce4428-1963-49f4-bbdf-328a132e531b]