If I drop a file on Hex (the executable), the editor doesn't open the file.
The problem is here:
// hxmain.pas
procedure TMainForm.EvalCmdLine;
var
s: string;
i: integer;
begin
for i:=1 to ParamCount do
begin
s := UpperCase(ParamStr(i));
if (s[1]='/') or (s[1]='-') then
begin
//
end else
if FileExists(ParamStr(i)) then CreateEditor(ParamStr(i), HexParams.WriteProtected);
end;
end;
If I drop a file on Hex (the executable), the editor doesn't open the file.
The problem is here:
On Linux full file names start with a '/'.