Adding torrents from browser executes new UI instead of using existing one

Bug #286968 reported by Patrick O'Callaghan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qBittorrent
Fix Released
Medium
Christophe Dumez

Bug Description

I configured Firefox 3 to use qbittorrent as its helper application for .torrent files. However if I click on a .torrent file with a QBT session already running, I get a new QBT window. The new window shows the existing torrents plus the new one, but the old window shows only the torrents already running. It would be much better for new torrents simply to be added to the existing window, which is what happens with other clients such as Ktorrent and Transmission.

This is using KDE 4.1.2 on Fedora 9, if it matters.

Revision history for this message
Trinexx (trinexx56) wrote :

I can confirm that it does indeed do this. While I wouldn't consider it a deal breaker (I love qBittorrent.), it is quite annoying.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

I guess you two are using Qt >= 4.4?

I use a new singleInstance code with Qt4.4 and it looks like it is unreliable. I'll try to fix it. If I can't before final, I'll simply use the same code as with previous Qt versions.

Thanks for reporting this.

Changed in qbittorrent:
assignee: nobody → hydr0g3n
status: New → Confirmed
Revision history for this message
Patrick O'Callaghan (pocallaghan) wrote :

Yes, I have qt-4.4.3 on Fedora 9.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Ok. This is fixed in svn.

Note that this means that qBittorrent was not cleanly shutdown before. Anyway, if local domain socket is not closed properly, I simply delete its file now so that I can open it again. It is now reliable.

Changed in qbittorrent:
milestone: none → 1.2.0
status: Confirmed → Fix Committed
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

v1.2.0 released. Thanks guys.

Changed in qbittorrent:
status: Fix Committed → Fix Released
Revision history for this message
Patrick O'Callaghan (pocallaghan) wrote :

I'm afraid this bug has come back. QBT 2.1.6 under KDE 4.4 on Fedora 12.

Changed in qbittorrent:
status: Fix Released → New
Revision history for this message
Łukasz Chełmicki (lukasz-chelmicki) wrote :

A do not have this bug on Debian core 2.6.32, GNOME, qt 4.6.x
Oh and i use qBitTorrent 2.3.0beta1 from SVN

Revision history for this message
Patrick O'Callaghan (pocallaghan) wrote :

Exit any running copy of QBT and type the following from a Shell:

qbittorrent & qbittorrent &

On my system I get two copies of QBT running (this may not be obvious because they both occupy the same screen space). The reason is that there's a race condition when QBT starts, which occurs if two instances try to start almost simultaneously. The race is caused by QBT checking for the existence of /tmp/qbittorrent-<uid>, which is not reliable since a previous instance may not yet have had time to create the file. It's a small window, but it happens to me almost every time when I have QBT as part of my KDE saved session and also starting via Autostart. I disabled it in Autostart to work around the problem, but that's not a real solution.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

I'm almost done fixing this.

Changed in qbittorrent:
importance: Undecided → Medium
milestone: 1.2.0 → 2.2.9
status: New → In Progress
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

This is fixed in SVN. Thanks!

Changed in qbittorrent:
status: In Progress → Fix Committed
Revision history for this message
Patrick O'Callaghan (pocallaghan) wrote : Re: [Bug 286968] Re: Adding torrents from browser executes new UI instead of using existing one

Excellent, I look forward to trying it.

poc

On Wed, Jun 9, 2010 at 5:40 AM, Christophe Dumez <email address hidden> wrote:

> This is fixed in SVN. Thanks!
>
> ** Changed in: qbittorrent
> Status: In Progress => Fix Committed
>
> --
> Adding torrents from browser executes new UI instead of using existing one
> https://bugs.launchpad.net/bugs/286968
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in qBittorrent - An advanced bittorrent client in C++ / Qt4: Fix
> Committed
>
> Bug description:
> I configured Firefox 3 to use qbittorrent as its helper application for
> .torrent files. However if I click on a .torrent file with a QBT session
> already running, I get a new QBT window. The new window shows the existing
> torrents plus the new one, but the old window shows only the torrents
> already running. It would be much better for new torrents simply to be added
> to the existing window, which is what happens with other clients such as
> Ktorrent and Transmission.
>
> This is using KDE 4.1.2 on Fedora 9, if it matters.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/qbittorrent/+bug/286968/+subscribe
>

Changed in qbittorrent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.