8000 Provide `el.bat` for starting ELinks on Windows from any directory · Issue #363 · rkd77/elinks · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Provide el.bat for starting ELinks on Windows from any directory #363
Open
@stanio

Description

@stanio

Currently, the el.bat provided with Windows binary packages assumes a fixed program location (C:\ELINKS64):

SET ELINKS_CONFDIR=C:\ELINKS64
SET XDG_CONFIG_HOME=C:\ELINKS64
SET CURL_CA_BUNDLE=C:\ELINKS64\curl-ca-bundle.crt
C:\ELINKS64\src\elinks.exe

I suggest it could be changed like:

@ECHO OFF
SET ELDIR=%~dp0
:: Remove trailing \ from %~p0
SET ELDIR=%ELDIR:~0,-1%
SET ELINKS_CONFDIR=%ELDIR%
SET XDG_CONFIG_HOME=%ELDIR%
SET CURL_CA_BUNDLE=%ELDIR%\curl-ca-bundle.crt
"%ELDIR%\src\elinks.exe"

%~dp0 expands to script's drive and path. %ELDIR:~0,-1% removes the trailing \ from the path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0