Page 1 of 1

Magnet file association problem (additional entry inside Firefox)

Posted: Wed Nov 06, 2013 10:03 am
by Ghst
Hello!

I've upgraded qBittorent to version 3.1.2 today and noticed an additional entry added to file association window which i can't remove. In previous version it looked like this:

Clicking on a magnet link would bring this window up:
Image

Going into Firefox (Tools - Options - Application) and checking magnet file association shows this:

Image

and clicking on application details shows this:

Image

Upgrading to version 3.1.2 adds an additional entry which i dont know how to remove:

Image Image Image (notice that application details window lists only old entry, not the new one...so it cant be removed from there).


I've checked mimeTypes.rdf file inside firefox profile folder that handles filetype associations but due to my limited knowledge i wasnt able to solve the problem.

P.S. Even tho application shows two entries which could mean that qbittorrent is installed in two different places, qbittorrent is installed into the same "C:\Program Files (x86)\qBittorrent\qbittorrent.exe". When i did a fresh installation of qbittorrent i got only one entry shown (qbitorrent.exe), but when i upgraded it today another entry pops out ("C:\Program Files\...). I didn't tho anything besides upgrading the client.


Does anyone know how to remove "C:\Program File (x86)\...." entry and leave only "qbittorrent.exe" entry?

Thank you.

Re: Magnet file association problem (additional entry inside Firefox)

Posted: Wed Nov 06, 2013 10:22 am
by Ghst
I have tried deleting all entries of qbittorrent, magnet and program files from mimeTypes.rdf file and i managed to remove displaying of "qbittorent.exe" entry when i click on a magnet link. Also, going into Tools - Options - Application does not display magnet file association any more. However,when i still try to open a magnet link now shows "C:\Program Files (x86)\qBittorrent\qbittorrent.exe" "%1".

Where does this come from?

Edit: Completely uninstalling, cleaning the registry and then reinstalling the application (and seting up the preferences all over again) does not solve the problem.

Re: Magnet file association problem (additional entry inside Firefox)

Posted: Wed Nov 06, 2013 2:52 pm
by sledgehammer_999
The installer and qbittorrent create this key in the registry for magnets: HKEY_CLASSES_ROOT\Magnet\shell\open\command\"$INSTDIR\qbittorrent.exe" "%1"

Where INSTDIR points to the installation directory. The uninstaller should clean that up.

Which version was the previous installation? Was it from the official installer?

Re: Magnet file association problem (additional entry inside Firefox)

Posted: Wed Nov 06, 2013 3:12 pm
by Ghst
Hello!

My previous installation was v3.1.1.1 (stable) downloaded and installed from the official page. Then i downloaded v3.1.2 and installed it over my previous installation into the same directory and then this additional entry pops out. I also tried reverting the image, then uninstalling the previous version first and then installing new one, but the problem remained.

However, i do not have "HKEY_CLASSES_ROOT\Magnet\shell\open\command\"$INSTDIR\qbittorrent.exe" "%1" entry. It was only HKEY_CLASSES_ROOT\Magnet\shell\open\command\ with value data "C:\Program Files (x86)\qBittorrent\qbittorrent.exe" "%1".

Edit: I went into the registry to the key location (HKEY_CLASSES_ROOT\Magnet\shell\open\command\) and deleted "C:\Program Files (x86)\qBittorrent\qbittorrent.exe" "%1" from there and tried opening the magnet file again. Now i dont have that "C:\Program Files (x86)\qBittorrent\qbittorrent.exe" "%1"" entry anymore.

Re: Magnet file association problem (additional entry inside Firefox)

Posted: Wed Nov 06, 2013 3:25 pm
by Ghst
Actually, that did not solve it. After deleting the "C:\Program Files (x86)\qBittorrent\qbittorrent.exe" "%1" line from registry and then trying to open the magnet link everything is fine. However, qbittorrent then asks me to associate magnet and torrent links with it again (even tho i already did that) and when i do that it creates "C:\Program Files (x86)\qBittorrent\qbittorrent.exe" "%1" line again (even tho i already deleted it) and when i try to open magnet link now my problem is still there and im back where i started.

Re: Magnet file association problem (additional entry inside Firefox)

Posted: Wed Nov 06, 2013 3:58 pm
by Ghst
I think i've found what was the problem that adds additional entry when trying to open a magnet link through Firefox browser.

Upgrading or uninstalling then installing new version adds an empty data line inside  HKEY_CLASSES_ROOT\Magnet. Before upgrading it was like this:

(Default)  - REG_SZ - Magnet_URI
Content Type - REG_SZ - application/x-magnet

After upgrading it was like this:

(Default)  - REG_SZ - Magnet_URI
Content Type - REG_SZ - application/x-magnet
URL Protocol - REG_SZ -


URL Protocol line was causing an additional entry. Deleting this line from registry solved the problem, as far as i can tell for now.

Re: Magnet file association problem (additional entry inside Firefox)

Posted: Wed Nov 06, 2013 9:20 pm
by sledgehammer_999
One thing I know:
The "cute" entry with the icon is not ours. It is caused by something else, probably you manually selecting the executable in Firefox. The ugly entry with the huge string path is ours.

I suppose that when you removed the "URL Protocol" from the registry you are left with the "cute" entry, right?

Re: Magnet file association problem (additional entry inside Firefox)

Posted: Wed Nov 06, 2013 9:33 pm
by Ghst
Correct, after removing the "url protocol" line from the registry, i'm left with the cute entry (first picture at the begining of this thread).

Thanks for trying to help me out, sledge.

Re: Magnet file association problem (additional entry inside Firefox)

Posted: Wed Nov 06, 2013 10:19 pm
by sledgehammer_999
No problem, but as I said that cute entry isn't caused by the installer or qbt itself.