<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Please tell us you success story when you done<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">For me i am using SimpleIPC<br>
<a href="https://github.com/parmaja/miniedit/blob/master/source/gui/mne.lpr">https://github.com/parmaja/miniedit/blob/master/source/gui/mne.lpr</a> <br><pre>look at AnotherInstance and MainUnit.pas<br><br><br></pre><pre>Works good in Windows but not tested in Linux.<br>
</pre></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 4, 2013 at 12:08 PM, Graeme Geldenhuys <span dir="ltr"><<a href="mailto:graeme@geldenhuys.co.uk" target="_blank">graeme@geldenhuys.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm posting it here, but it is not a Lazarus question, but a general GUI<br>
app (created with FPC) question.<br>
<br>
Example of what I want to achieve. Say I have gEdit (Gnome editor) open<br>
and have a file loaded. Now if I am in a console and type 'gedit<br>
someotherfile.txt' [or double click a text file in Nautilus], it doesn't<br>
start a new instance of gedit, the existing instance opens the new file<br>
- gedit supports multiple opened files in a tabbed view.<br>
<br>
How do they accomplish this? I would like to implement something like<br>
that for fpGUI, and it must work under all fpGUI supported "desktop"<br>
platforms.<br>
<br>
I know under Windows you can check if an instance of an application is<br>
already running, and stop your current instance. Still not sure how to<br>
transfer the "open a new file" action to that existing instance.<br>
<br>
As for Linux, FreeBSD etc, I have no clue how to do it. For those not in<br>
the know, fpGUI is based directly on GDI or XLib (not Qt, GTK etc).<br>
<br>
<br>
<br>
Regards,<br>
  - Graeme -<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal<br>
<a href="http://fpgui.sourceforge.net/" target="_blank">http://fpgui.sourceforge.net/</a><br>
<br>
_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><span style="font-family:courier new,monospace">I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3<br><br>Best Regards<br>Zaher Dirkey</span></div>

</div>