On Thu, 27 Aug 2009 11:23:52 +0200 Graeme Geldenhuys <grae...@opensoft.homeip.net> wrote:
> Hi, > > As far as I know, Lazarus doesn't have a Thread List Window available. > So I am trying to setup and external tools menu item which will do > this for me, but I am have some problems with it. > > This is the actual setup strings used for the external tool. > > Program Filename: > /usr/bin/gnome-terminal > > Parameters: > --title="Thread Monitor - $NameOnly($TargetFile())" --command="watch > -n.1 'ps -C $NameOnly($TargetFile()) -L -o pid,tid,pcpu,state'" > > > When I run Lazarus from the command line under Linux, this is the > output shown to stdout when I try and run my external tool. > > [TExternalToolList.Run] CmdLine="/usr/bin/gnome-terminal > --title="Thread Monitor - project1" --command="watch -n.1 'ps -C > project1 -L -o pid,tid,pcpu,state'"" WorkDir="" > > > As far as I can see the macros used in the External Tool step was > converted correctly. I can even copy and paste the CmdLine without the > outer quotes and it executes fine from a teminal window. Yet, if I run > it from the Tools menu gnome-terminal gives an error. The error is: > "There was an error creating the child process for this terminal" > > Anybody know what I am doing wrong? It is a bug in fcl-process/src/unix/process.inc proc CommandToList used by TProcess. It only removes the outer ". Please report it. Mattias -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus