Skip to content

Latest commit

 

History

History
104 lines (76 loc) · 3.29 KB

USAGE.md

File metadata and controls

104 lines (76 loc) · 3.29 KB

Usage Guide - Default Browser Windows

Quick Start

  1. Build the application:

    dotnet build --configuration Release
    

    Or simply run build.bat

  2. Run the application:

    dotnet run --configuration Release
    

    Or run the executable: bin\Release\net6.0-windows\DefaultBrowserWindows.exe

  3. Look for the tray icon: A blue circle with "B" should appear in your system tray

Setting Up as Default Browser

  1. Register the application (requires administrator privileges):

    • Right-click the tray icon
    • Click "Register as Default Browser"
    • If not running as admin, you'll be prompted to restart with admin privileges
  2. Set in Windows Settings:

    • Open Windows Settings (Win + I)
    • Go to Apps > Default apps
    • Find and select "Default Browser Windows" as your default web browser

Daily Usage

Selecting Your Preferred Browser

  • Right-click the system tray icon
  • Select your preferred browser from the list
  • All links will now open with your selected browser

Features Available

  • Browser Selection: Quick switching between installed browsers
  • Settings: Configure startup behavior and notifications
  • Persistent Selection: Remembers your choice across sessions

System Tray Menu Options

  • Browser List: Shows all detected browsers (Chrome, Firefox, Edge, etc.)
  • Settings...: Open configuration dialog
  • Register/Unregister as Default Browser: System registration
  • About: Application information
  • Exit: Close the application

Settings Options

  • Start with Windows: Automatically start when Windows boots
  • Show notifications: Display notifications when switching browsers
  • Use most recent browser: Always use the last selected browser

Command Line Usage

# Register as default browser (admin required)
DefaultBrowserWindows.exe --register

# Open a URL with selected browser
DefaultBrowserWindows.exe "https://example.com"

# Open an HTML file with selected browser
DefaultBrowserWindows.exe "file.html"

Troubleshooting

Browser Not Detected

  • Make sure the browser is properly installed
  • Check if it appears in Windows Settings > Apps > Default apps

Can't Register as Default Browser

  • Run as Administrator when registering
  • Check Windows defender/antivirus isn't blocking the registration

Tray Icon Not Visible

  • Check if the icon is hidden in the overflow area (click the up arrow in system tray)
  • The application might already be running (only one instance allowed)

Links Still Open with Wrong Browser

  • Ensure you've selected the desired browser from the tray menu
  • Check that "Default Browser Windows" is set as default in Windows Settings
  • Try registering the application again

"Already Running" Error When Clicking Links

  • This issue has been resolved with inter-process communication
  • Multiple instances now properly communicate via Named Pipes
  • URLs are forwarded to the existing instance automatically

Configuration File Location

Settings are saved to: %APPDATA%\DefaultBrowserWindows\config.json

Uninstalling

  1. Right-click tray icon and select "Unregister as Default Browser"
  2. Set a different default browser in Windows Settings
  3. Exit the application
  4. Delete the application folder
  5. Optionally delete: %APPDATA%\DefaultBrowserWindows\