Skip to content

felipetesc/NimChromePath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NimChromePath

Gets the chrome paths on Windows and *Nix Systems

nimble

License

MIT

Installation

nimble install nimchromepath

Documentation (available procs)

Get paths only to Windows Systems

proc getWinPaths(): seq[string]

Get paths only to *Nix Systems

proc getNixPaths(): seq[string]

Get paths on Windows or on *Nix Systems

proc getpaths(): seq[string]

Example:

Open Google Chrome in app mode

import osproc
import nimchromepath

proc openURLLikeApp(url : string) : void =
  var paths = getpaths()
  if paths.len > 0 :
    var path = paths[0]
    path =  path & " --app=" & url
    echo path
    discard  osproc.execCmd(path)

openURLLikeApp("https://github.com/felipetesc/NimChromePath")
 

About

Gets the chrome path on Windows and *Nix Systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages