Under Ubuntu Linux the Lazpaint openFile appears very very large and goes out from the display. The cause is that Raw types filter is too long.
I solved this with this change in URaw.pas:
function GetAllRawExtensions(a:byte): string;
var
i: Integer;
begin
result := '';
for i := (a-1)*10 to min(a*10-1,high(RawFileExtensions)) do
begin
if result <> '' then result += ';';
result += RawFileExtensions[i].ext;
end;
end;
function IsRawFilename(AFilename: string): boolean;
var
ext: String;
begin
ext := LowerCase(ExtractFileExt(AFilename));
delete(ext,1,1);
result := Pos(';'+ext+';',';'+AllRawExtensions1+';'+';'+AllRawExtensions2+';'+';'+AllRawExtensions3+';') <> 0;
end;
And under Initialization:
AllRawExtensions1 := GetAllRawExtensions(1);
AllRawExtensions2 := GetAllRawExtensions(2);
AllRawExtensions3 := GetAllRawExtensions(3);
In UFileExtennsions I did:
initialization
...
...
RegisterPicExt('Raw',AllRawExtensions1, [eoReadable]);
RegisterPicExt('Raw',AllRawExtensions2, [eoReadable]);
RegisterPicExt('Raw',AllRawExtensions3, [eoReadable]);
The other issue is that it always says that python scripts are unsecure. I solved (worked around) it doing (in UPython.pas):
var idx: integer;
fromClause: boolean;
moduleName, subId: string;
isSafe: boolean;
begin
exit(true); <---- Change (row 343)
if importCount <> 1 then exit(false); // syntax error