Bug in "startlazarus" ? lazarus / 13-General ---------------------------------------------------------------------- bonmario · 2021-05-09 05:41 Hi, if i use this command Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i /usr/share/lazarus/default/lazarus /media/DiscoC/MyDir/MyProject.lprit starts lazarus and open my project but if i use this command Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i /usr/share/lazarus/default/startlazarus /media/DiscoC/MyDir/MyProject.lprit only starts lazarus It's correct or it's a bug? I seem to remember that in the past "startlazarus" also opened the project received as a parameter. Thanks, Mario ---------------------------------------------------------------------- Bart · 2021-05-09 08:06 Which Lazarus version? starlazarus is supposed to pass commandline parameters to lazarus. Bart ---------------------------------------------------------------------- bonmario · 2021-05-09 09:07 Sorry, you're right. Thisi is my version: Lazarus 2.1.0 r65078M FPC 3.2.0 x86_64-linux-gtk2 The same also in Windows Hi, Mario ---------------------------------------------------------------------- Bart · 2021-05-09 09:32 Maybe report this on the bugtracker? In starlazarus.lpr there are these lines: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i           // if there is a lazarus instance accepting files, pass files to that            LazIDEInstances.PerformCheck; So one might think that is is supposed to work. Bart ---------------------------------------------------------------------- Bart · 2021-05-09 09:55 On windows for me this works as expected b.t.w. Both commands open the same project. (After the first I opende another project and closed Lazarus) Code: [Select]C:\devel\lazarus>lazarus c:\Users\Bart\LazarusProjecten\eplus\eplus.lpi C:\devel\lazarus>startlazarus c:\Users\Bart\LazarusProjecten\eplus\eplus.lpi Lazarus 2.1.0 r64844 FPC 3.2.2 i386-win32-win32/win64 Bart ---------------------------------------------------------------------- lucamar · 2021-05-09 11:48 In Linux, at least, starting with v2.0.12 startlazarus doesn't pass the file name and one has to call lazarus-ide directly. I noticed this when a small tool I use to open projects stopped working. What I don't remember is whether there was a bug report about it ---------------------------------------------------------------------- trev · 2021-05-09 12:07 Quote from: lucamar on May 09, 2021, 01:48:10 pmWhat I don't remember is whether there was a bug report about it  The only open issue for startlazarus seems to be https://bugs.freepascal.org/view.php?id=37034