[info] Qbittorrent opens a new instance when adding a new task

rado84

Well-Known Member
Joined
Feb 25, 2019
Messages
776
Reaction score
633
Credits
4,916
For some time qbittorrent was opening a new instance of itself when adding a new task, so I did some digging and eventually found a solution on github by another user. It turned out that the tmp paths in all distros and DEs are messed up which causes qbittorrent to go crazy. This problem doesn't exist with other torrent clients bc when they can't find the tmp directory, they use their own config directories. But qbittorrent apparently wasn't programmed that way. So, in order to fix this, open your ~/.bash_profile and add these 2 lines in it:

Code:
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

uKAZaja.png


Save and reboot your system. After that the problem will be gone.
Or, instead of rebooting, as @f33dm3bits , you can "source" it (whatever that means) in terminal:
Code:
source ~/.bash_profile

P.S. DON'T do the sourcing, if you have already rebooted your computer! Sourcing the file will only cause the described problem to return and you'll have to reboot again.

It's a good idea to backup your ~/.bash_profile, so that if you have to reinstall your distro, you won't have to waste time and nerves to find a fix for that problem again.
 
Last edited:


Instead of rebooting or logging in and out you can just source your bash profile after having made the change.
Code:
source ~/.bash_profile
 
Instead of rebooting or logging in and out you can just source your bash profile after having made the change.
Code:
source ~/.bash_profile
Does that require a sudo?

FYI, the appimage version doesn't do this, since it is itself a self-contained fs that's get mounted in tmp. https://github.com/c0re100/qBittorrent-Enhanced-Edition/releases
Personally I dislike appimages bc they have certain default settings and the next time you run the appimage, it reverts back to its defaults. If I have to make all of my settings every time I run the program... no, thanks.
You may like to have all of your files downloaded on the system partition but I don't, so for me the appimage is not an option. I assume I'm not the only one who feels that way about appimages and that's why I didn't suggest it as a possible solution.
 
Personally I dislike appimages bc they have certain default settings and the next time you run the appimage, it reverts back to its defaults. If I have to make all of my settings every time I run the program... no, thanks.
I use quite a few appimages and have never experienced this; they all run fine and keep their settings across reboots and usage. I use qBittorrent as an appimage and it works fine too. Maybe you're doing something that you mustn't or not doing something you must.
This is what I do:
1. Download the appimage from it's developer website, i.e. github page.
2. Make it executable.
3. Try the appimage fisrt from terminal
Code:
./app_name.appimage
Check no errors appear and if so, I add it to DE's app menu launcher.
4. Check the dot file it's been created; an .appimage_pkg_name folder, i.e. .qbittorrent must be in place somewhere in $HOME, if it's not, then something's wrong as that shouldn't happen.
5. Try the app from DE's app menu launcher.
Like I said, I've never experienced that issue you mentioned, all my appimages work fine and keep their settings across usage. The one issue I sometimes have is that some do require to pass a --no-sandbox option, this is a known bug https://www.google.com/search?client=firefox-b-d&q=appimage++--no-sandbox. Also, I have all my appimages in a folder in $HOME called "appimages". Could it be that you're running them from different locations? Maybe from a USB stick? If so, you might try with this https://docs.appimage.org/user-guide/portable-mode.html you might want to read here too https://docs.appimage.org/user-guide/run-appimages.html and here https://forum.porteus.org/viewtopic.php?f=39&t=8584 this link contains a list of appimages that have been already tested and currently used by people, including me, along with configurations, workarounds and some helpful examples on how to. I do like the whole appimage concept. I used to use portable apps in Windows back in the day too https://portableapps.com/ so I'm not stranger to this approach. I think having these options are nice and actually one of the things that make Linux and using computers and OSes easier and convenient, which is great. For example, imagine this scenario; You run some OS/distro from a USB stick, but you'd like to have a way to use some specific certain apps without having to install them, now imagine that you change the OS/distro in the USB, and want to use the same apps with their already saved settings and work you've previously done with them, how do you do that? Appimages were created to solve that; you can carry on a Live USB with some distro plus some appimages to get things done, you can even change the distro and keep on using the same appimages as well. :)
 
Last edited:
What have I missed?....I use qbittorrent v4.3.3, and I suffer none of these dramas
 
I have used qbittorrent for years, and have had no occasion for complaint.

I have learned to leave the unnecessary 'updates' (these come via the LM update manager) alone.
 
I believe those updates are labeled 'auto rebuilds'.
 

Members online


Top