Treferwynd / transmission-remote-gtk

Automatically exported from code.google.com/p/transmission-remote-gtk
GNU General Public License v2.0
0 stars 0 forks source link

Starting a second copy #148

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start the app.
2. Open link with torrent in a browser.
3. Will start a second instance of the application, instead of sending link in 
the first copy application.

There should be one instance of the application.
I`m using transmission-remote-gtk 0.7 on Windows 7 (installed from 
transmission-remote-gtk-0.7-installer.exe).

Best regards, Alexander. abzaver@gmail.com

Original issue reported on code.google.com by abza...@gmail.com on 14 Oct 2011 at 5:06

GoogleCodeExporter commented 9 years ago
Hello,

Yeah, this is something I know about and need to look into.

It doesn't work in the win32 version for now because libunique, which is used 
for this, requires dbus. I might use dbus, but I'd probably rather write some 
win32 IPC code to do this instead of bringing in dbus on windows.

Original comment by a...@eth0.org.uk on 14 Oct 2011 at 6:55

GoogleCodeExporter commented 9 years ago
Implemented this using mailslots in the Win32 API.

I'm releasing it now as 0.7.1, since it's quite an important feature. Can you 
let me know if it works ok for you?

Original comment by a...@eth0.org.uk on 15 Oct 2011 at 6:51

GoogleCodeExporter commented 9 years ago
Ok, i understand. If you want, I can try to help with this issue. I
recently implemented this feature in my application.

Original comment by abza...@gmail.com on 16 Oct 2011 at 6:21

GoogleCodeExporter commented 9 years ago
Ok, I'll check it. But I did this using semaphores and WM_COPYDATA.

Original comment by abza...@gmail.com on 16 Oct 2011 at 6:27

GoogleCodeExporter commented 9 years ago
Yes, It`s worked!!! Thanks!

16 ������� 2011��. 10:27 ������������ ��������� ���������
<abzaver@gmail.com> �������:

Original comment by abza...@gmail.com on 16 Oct 2011 at 6:33

GoogleCodeExporter commented 9 years ago
Hi! I catch bug. Look in attaches. It happened when I ran the second
copy of the program. But the error did not reproduce... If I find a
way reproduce I'll describe the steps...

16 ������� 2011��. 10:32 ������������ ��������� ���������
<abzaver@gmail.com> �������:

Original comment by abza...@gmail.com on 16 Oct 2011 at 2:18

GoogleCodeExporter commented 9 years ago
Hi, did you mean to attach something?

Original comment by a...@eth0.org.uk on 16 Oct 2011 at 9:55

GoogleCodeExporter commented 9 years ago
Would be good to see a backtrace or something if you have one, but I think I 
managed to just reproduce it myself. It seems to be caused by the 
gtk_window_present(), rather than any of the mailslot code. When I comment out 
the window_present, I can run a second instance any number of times.

I don't know why this is happening yet, it seems to work fine on Linux, and 
it's not totally reproducable like you say. 

Original comment by a...@eth0.org.uk on 16 Oct 2011 at 10:02

GoogleCodeExporter commented 9 years ago
What do you mean by "backtrace or something" and how can I get it? You
find my screenshot in a previous letter?

Original comment by abza...@gmail.com on 17 Oct 2011 at 5:05

GoogleCodeExporter commented 9 years ago
Can you try 0.7.2, I'm uploading it now.

Original comment by a...@eth0.org.uk on 17 Oct 2011 at 8:18