Open
Description
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
Labels
No labels