Hello<div><br></div><div>I trying to ctreate port for qsingleapplication library from qt solutions. It may be useful for turning current pc-bsd tools to single instance applications. </div><div>See port in attachment. This is early version, so it may contain bugs. Can someone review that port? This is my first port creation expirience. </div>

<div>Thanks.<br clear="all"><br>-- <br>Best regards, Yuri Momotyuk<br>
</div>
</blockquote></div><div><br></div><div>I have just finished prototype of single application mechanism for pc-controlpanel. I use QtSingleApplication class from port above. You can try single instance pc-controlpanel from my assembla repo:</div>

<div><br></div><div>QtSingleApplication has one issue. It can not show window which is displayed in another workspace. For example: </div><div>1. I launch pc-controlpanel on 1st workspace (desktop)</div><div>2. I switch to another workspace (for example to 2nd)</div>

<div>3. I launch pc-controlpanel again. Application can see another instance but window is not shown on 2nd workspace :(</div><div><br></div><div>As workaround I hide window before show it again. Window is blink but seems it works :(</div>

<div><br></div><div>To turn pc-controlpanel to single instance I did:</div><div><br></div><div><u>main.cpp:</u></div><div><br></div><div><strong>#include <qtsingleapplication.h></strong><br></div><div><strong><br></strong></div>

}</strong></div><div><strong><br></strong></div><div><strong>...<br></strong></div><div><strong><br></strong></div><div><strong> </strong> MainWnd w;<strong><br> </strong><em>// Use own function to show window on message.</em></div>

</u></div><div><strong><br></strong></div><div><u>mainwnd.cpp</u><strong><br></strong></div><div><u><br></u></div><div><strong>void MainWnd::on_SingleInstance()<br>{<br> </strong><em>// Hide window first. This is workaround to show window if it on other workspace. Only hide-show sequence is working for me :(</em></div>

<div><strong> this->hide();<br> this->showNormal();<br> this->activateWindow();<br> this->raise();<br>}</strong><u><br></u></div><div><strong><br></strong></div><div>PS Sorry again for my english. I hope you can understand this.<strong><br>