U-C-S / Hurl

Choose the browser on the click of a link
MIT License
294 stars 10 forks source link

Firefox open in Private Mode #99

Closed Landmine-1252 closed 8 months ago

Landmine-1252 commented 8 months ago

First, thank you for this application. It is amazing and extremely helpful.

When attempting to open a URL using Private as an alternative launcher it appears to open the URL in normal Firefox and then open a new Firefox window in Private Mode at the same time. I've tried adding %URL% after -private-window and it results in the Private Window not opening.

{
  "$schema": "https://raw.githubusercontent.com/U-C-S/Hurl/main/Utils/UserSettings.schema.json",
  "LastUpdated": "3/12/2024 12:59:26 PM",
  "Browsers": [
    {
      "Name": "Firefox",
      "ExePath": "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
      "AlternateLaunches": [
        {
          "ItemName": "Private",
          "LaunchArgs": "-private-window"
        }
      ]
    },
    {
      "Name": "Google Chrome",
      "ExePath": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
      "AlternateLaunches": [
        {
          "ItemName": "Incognito",
          "LaunchArgs": "-incognito"
        }
      ]
    },
    {
      "Name": "Brave",
      "ExePath": "C:\\Users\\landmine\\scoop\\apps\\brave\\current\\brave.exe",
      "AlternateLaunches": [
        {
          "ItemName": "Incognito",
          "LaunchArgs": "-incognito"
        }
      ]
    },
    {
      "Name": "Microsoft Edge",
      "ExePath": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
      "AlternateLaunches": [
        {
          "ItemName": "Incognito",
          "LaunchArgs": "-incognito"
        }
      ]
    }
  ],
  "AppSettings": {
    "LaunchUnderMouse": false,
    "NoWhiteBorder": false,
    "BackgroundType": "mica",
    "WindowSize": [560, 319]
  }
}
U-C-S commented 8 months ago

It works for me with %URL% , I have this config below

    {
      "Name": "Firefox Nightly",
      "ExePath": "C:\\Program Files\\Firefox Nightly\\firefox.exe",
      "AlternateLaunches": [
        {
          "ItemName": "Private",
          "LaunchArgs": "-private-window %URL%"
        }
      ]
    },

Without %URL%, Hurl uses URL as first argument and followed by any arguments, which is opening url in normal wnd and followed by private window. I will look into making this otherwise (URL appended at end instead)

Landmine-1252 commented 8 months ago

Copied and pasted your config and it works. Seems like I was getting something mixed up in my testing. Possible I didnt actually reload after savings.

Thank you again!