Re: [Gambas-user] R: My programm name of process

2012-10-05 Thread Fabien Bodard
Ru ... It is not the answer to our query... It's just workarounds Le 6 oct. 2012 00:18, "Ru Vuott" a écrit : > Another possibility with "xprop" and DesktopWindows class. > It need to activate gb.desktop. > > *** > > Private i As Integer > > > Public Sub Form_Open() > > Dim

Re: [Gambas-user] R: My programm name of process - "xprop"

2012-10-05 Thread Ru Vuott
By using "xprop", you can choose the window of program via mouse ! > Another possibility with "xprop" and > DesktopWindows class. > It need to activate gb.desktop. > > *** > > Private i As Integer > > > Public Sub Form_Open()  > > Dim pr As Process  > Dim ss, x As

Re: [Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3'.

2012-10-05 Thread Jussi Lahtinen
Latest revision doesn't compile. But in case you are using another revision (5219 or older), then try to recompile gambas3.gambas. Jussi On Sat, Oct 6, 2012 at 12:04 AM, Willy Raets wrote: > Ubuntu 12.04 LTS - Unity Desktop > Installation: Download from Gambas website Gambas 3.3.2 > Dependenci

Re: [Gambas-user] R: My programm name of process

2012-10-05 Thread Ru Vuott
Another possibility with "xprop" and DesktopWindows class. It need to activate gb.desktop. *** Private i As Integer Public Sub Form_Open() Dim pr As Process Dim ss, x As New String[] Dim s, y As String Dim j As Byte pr = Shell "xprop | grep -i window" For

[Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3'.

2012-10-05 Thread Willy Raets
Ubuntu 12.04 LTS - Unity Desktop Installation: Download from Gambas website Gambas 3.3.2 Dependencies installed: sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libldap2-dev l

Re: [Gambas-user] Issue 333 in gambas: In the report the spacing changed in the latest version

2012-10-05 Thread gambas
Comment #10 on issue 333 by gambas...@gmail.com: In the report the spacing changed in the latest version http://code.google.com/p/gambas/issues/detail?id=333 I will change the default values to 0 but it will not take effect since the next releases at least it will work for the svn -

Re: [Gambas-user] Issue 333 in gambas: In the report the spacing changed in the latest version

2012-10-05 Thread gambas
Comment #9 on issue 333 by flynetin...@gmail.com: In the report the spacing changed in the latest version http://code.google.com/p/gambas/issues/detail?id=333 not as comfortable because I have to tweak every reports (field by field) but at least it works. Thanks for the help. --

Re: [Gambas-user] R: My programm name of process

2012-10-05 Thread Jussi Lahtinen
How about something like this: Dim sOutput As String Exec ["pgrep", "-f", "NameOfTheProgram.gambas"] Wait To sOutput If Split(Trim$(sOutput), gb.NewLine).Count = 1 Then Exec ["kill", sOutput] Else 'Multiple instances found, do something else... Endif Jussi On Fri, Oct 5, 2012 at 7:00 PM, Ru

Re: [Gambas-user] Issue 333 in gambas: In the report the spacing changed in the latest version

2012-10-05 Thread gambas
Comment #8 on issue 333 by gambas...@gmail.com: In the report the spacing changed in the latest version http://code.google.com/p/gambas/issues/detail?id=333 Well i have found something ... as i set default value (W/H) now for objects at 1 cm the ide set up all the object that have 0 to 1 cm .

Re: [Gambas-user] R: My programm name of process

2012-10-05 Thread Ru Vuott
> > > No, not really exceptional and in fact not really rare. > > There is no reason to think that one of your gambas projects > may have a > single instance running unless that is a particular > RULE. It seems to me the problem was: e.g. I have 3 running gambas program: a.gambas b.gambas c.ga

Re: [Gambas-user] R: My programm name of process

2012-10-05 Thread Bruce
On Fri, 2012-10-05 at 16:24 +0100, Ru Vuott wrote: > > > > > > > > Even that is risky, because if you have more than one > > instance of the > > same executable running .. you will send a SIGTERM to all of > > them. > > > > Ok... but this is an exceptional and rare eventuality !!! no ? > No,

Re: [Gambas-user] R: My programm name of process

2012-10-05 Thread Ru Vuott
> > > > > Even that is risky, because if you have more than one > instance of the > same executable running .. you will send a SIGTERM to all of > them. > Ok... but this is an exceptional and rare eventuality !!! no ? ---

Re: [Gambas-user] R: My programm name of process

2012-10-05 Thread Bruce
On Fri, 2012-10-05 at 11:20 +0100, Ru Vuott wrote: > ...this is a possible way: > > > Public Sub Button1_Click() > > Dim s1, s2, pid As String > > > s1 = InputBox("Insert the program name (without its extension > .gambas):") > > > For Each pid In Dir("/proc

Re: [Gambas-user] R: My programm name of process

2012-10-05 Thread Bruce
On Fri, 2012-10-05 at 14:56 +0100, Ru Vuott wrote: > The name of "process" is here: > > /proc/PID_number/comm > > > The directory of program; > > /proc/PID_number/cmdline > > > bye > vuottt > > or just ps x| grep gbr but I'm not sure that I really understand the problem here <> m

Re: [Gambas-user] R: My programm name of process

2012-10-05 Thread Fabien Bodard
Symbolic links... but how benoit ?? 2012/10/5 Ru Vuott : > The name of "process" is here: > > /proc/PID_number/comm > > > The directory of program; > > /proc/PID_number/cmdline > > > bye > vuottt > > > > --- Ven 5/10/12, abbat ha scritto: > >> Da: abbat >> Oggetto: Re: [Gambas-user] R: M

Re: [Gambas-user] R: My programm name of process

2012-10-05 Thread Ru Vuott
The name of "process" is here: /proc/PID_number/comm The directory of program; /proc/PID_number/cmdline bye vuottt --- Ven 5/10/12, abbat ha scritto: > Da: abbat > Oggetto: Re: [Gambas-user] R: My programm name of process > A: gambas-user@lists.sourceforge.net > Data: Venerdì 5

Re: [Gambas-user] R: My programm name of process

2012-10-05 Thread abbat
Hi, I'm sure it's good way, but we need individual process name for each .gambas program not only to kill it. I use two and more different .gambas programs at one time and I need to see them in process list. For now my process list looks like this: Process list: pcmanfm lxterminal gbr3 gbr3 gbr

Re: [Gambas-user] My programm name of process

2012-10-05 Thread Benoît Minisini
Le 05/10/2012 08:18, abbat a écrit : > > Hi, > Current process name of my program is "gbr3". > So, if I have two and more running program of gambas I cant kill one > process. > "killall gbr3" kills all running gambas programs. > Is it possible to change a process name of gambas program? > > Thank

Re: [Gambas-user] My programm name of process

2012-10-05 Thread Fabien Bodard
This is an old query... Is there a way to replace the runtime process name by the program name Le 5 oct. 2012 08:19, "abbat" a écrit : > > Hi, > Current process name of my program is "gbr3". > So, if I have two and more running program of gambas I cant kill one > process. > "killall gbr3" kills

[Gambas-user] R: My programm name of process

2012-10-05 Thread Ru Vuott
...this is a possible way: Public Sub Button1_Click() Dim s1, s2, pid As String s1 = InputBox("Insert the program name (without its extension .gambas):") For Each pid In Dir("/proc") If Exist("/proc/" & pid & "/cmdline") Then s2 = File.Load(