Skip to content

This package detects the Windows default browser and returns the path to the exe.

License

Notifications You must be signed in to change notification settings

jhanley-com/win32_browser_detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browser Detect

Features

This package detects the Windows default browser and returns the path to the exe.

This package is for Windows only.

Getting started

Usage

import 'package:win32_browser_detect/win32_browser_detect.dart';

void main() {
  print("Default Browser:");
  var detect = BrowserDetect();
  print("Browser: ${detect.getDefaultBrowser()}");
  print("Path: ${detect.getDefaultBrowserPath()}");

  print("");
  print("Installed Browsers:");
  List<Browser> browsers = detect.getInstalledBrowsers();
  for (var browser in browsers) {
    print("hive: ${browser.hive}");
    print("keyName: ${browser.keyName}");
    print("applicationName: ${browser.applicationName}");
    print("command: ${browser.command}");
    print("");
  });
}

Additional information

About

This package detects the Windows default browser and returns the path to the exe.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages