mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Share settings, torrent progress in dual boot different OSes. #10764
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#10764
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @WaiYanMyintMo on GitHub (Jul 30, 2020).
Please provide the following information
qBittorrent version and Operating System
Latest, Windows 10 2004 and Linux Mint 20 (Ubuntu 20.04)
If on linux, libtorrent-rasterbar and Qt version
does not apply
What is the problem
Torrents are not shared between OSes.
What is the expected behavior
I want torrents progress to be shared between Windows and Linux. If possible, I would like to share all settings between both OS.
Steps to reproduce
Start a torrent in Windows, open qbittorent in Linux, torrents are not shared.
Extra info(if any)
I have an extra partition that can be accessed by both Linux and Windows. I believe if I could relocate the settings files to the shared location, every will be alright.
Is it possible now with my proposed work-around? Or does it have to be added by the software?
@thalieht commented on GitHub (Jul 30, 2020):
In Windows, add
--profile="dir_path_to_shared_config_files"(with the quotes) to the qBt shortcut's Target.This will create a
qBittorrentfolder in that path which will contain the folderscache, config, datathe next time you start qBt.Then https://github.com/qbittorrent/qBittorrent/wiki/Frequently-Asked-Questions#Where_does_qBittorrent_save_its_settings
This part is about importing existing torrents and settings so only you know if it's from Linux or Windows:
Copy the contents of the Preferences folder, found in the link above, from the original location to the
configfolder and do the same for the ".torrent files, logs, etc:" original folder to thedatafolder.The torrents and their progress are in the
BT_backupfolder.Before you start qBt make sure the save locations for all shared torrents are accessible by qBt in both Windows and Linux or they'll go into Missing Files mode and will require a recheck to resume (after they become accessible).
Do the equivalent in Linux.
Unfortunately the settings will also be shared so for example, if you wanted a column wider in Linux, it's not possible.
FYI this is theoretical mostly, i never tried it.
@WaiYanMyintMo commented on GitHub (Jul 31, 2020):
I'll try it and report back to you
@WaiYanMyintMo commented on GitHub (Jul 31, 2020):
It is definitely possible to change column width in Linux. Edit: whoops I misread you. I think you meant for a certain settings for each platform, which I agree is not possible. I have no need for that. However, is there a way it could be implemented? Just a thought experiment
All the torrents are on a shared accessible partition.
"" work? I'll test it and report back to you. ThanksIn linux, will supplying "--profile="
@WaiYanMyintMo commented on GitHub (Jul 31, 2020):
I had been fighting with my DE for the menu to work with the command but had given up.
Just passing the command --profile="/media/myfolder/" works! (mind the slash).
It created a qBittorrent folder underneath.
In there there are cache, config and data folders.
The data folder has "BT_backup" that you were talking about. I will switch over to windows, update to the latest qbittorrent, backup my profile, move the profile, and then repeat the shortcut command process.
I'll report back to you
@WaiYanMyintMo commented on GitHub (Jul 31, 2020):
Okay, I have tried running the executable with the new profile created in linux (fresh one), and it works.
According to my research, there are "C:\Users\Username\AppData\Local\qBittorrent" and "C:\Users\Username\AppData\Roaming\qBittorrent" folders in windows. I'll refer to them as Local and Roaming respectively.
The Roaming folder's content seems to match the config folder. However, the windows is using .ini and linux is using.conf. It seems both have the same internal content type and should be the same. (Windows version doesn't read .conf but rather created it's own .ini version of the files".
The Local folder's content has both data folder's contents "BT_Back.., GeoDB, logs, rss" and the cache folder. In comparison between the windows' already created folder and the linux folder, the only differences were already populated BT_Backup (with torrents and fastresumes), logs folder. GeoDB contents are the same, and the other folders "cache, rss" are empty.
I believe the .ini and .conf issue needs to be solve before I could go any further.
I don't know if .ini works on Linux or if .conf works on Windows, but if any of it works for both, here's are potential solutions.
I believe 2. is the easiest to implement and is the most compatible of them all.
@thalieht commented on GitHub (Aug 1, 2020):
Bummer... I completely forgot about .ini and .conf.
@WaiYanMyintMo commented on GitHub (Aug 2, 2020):
I found this https://github.com/qbittorrent/qBittorrent/blob/master/src/base/profile.cpp file, which I believe will have to be modified to change.
I'm not well versed in C++ yet but I think I can manage it, with your help. I'll start a pull request if I'm correct.
Nah I can't myself. Please
@thalieht commented on GitHub (Aug 2, 2020):
I'm not much of a coder sorry.
@WaiYanMyintMo commented on GitHub (Aug 2, 2020):
I'm guessing you are not part of the qBittorrent team then. Can you tag someone who is?
@thalieht commented on GitHub (Aug 2, 2020):
There is talk about this in #5214 towards the end, but it didn't get anywhere.
@Chocobo1 @glassez ping, if you have anything to say about the .conf .ini portability issue https://github.com/qbittorrent/qBittorrent/issues/13215#issuecomment-667181284
@WaiYanMyintMo commented on GitHub (Aug 4, 2020):
@Chocobo1, as politely as I can, can you please determine the scope of this feature? Like how hard is it to implement?
@Flow-Live commented on GitHub (Sep 2, 2020):
I'm also interested in this, I am planning to move to linux but keep Windows in dual boot and would like to be able to have both use the same configs. Qbittorrent is my only software right now preventing me to switch fully to linux as I need to seed.
@FranciscoPombal commented on GitHub (Sep 2, 2020):
@Flow-Live
Off topic, but if you are going to "fully switch to linux", why do you need the dual-boot? That doesn't sound like fully switching. You could have a Windows VM for the odd Windows-only program that you must run, though.
@Flow-Live commented on GitHub (Sep 3, 2020):
Well to me it's like fully switching, it's just that in the rare case I would be stuck I'd rather have a fallback solution... if I cannot accomplish this, maybe I should check for other solutions...
And I won't run Windows in a vm, the point is really not to run Windows at all.
@FranciscoPombal commented on GitHub (Sep 3, 2020):
@Flow-Live
Erm... right, that's understood, but as you said,
I proposed the VM as the fallback solution, as opposed to dual booting. Whenever you really want to run something in Windows, you spin up the VM, and do your business there. All the while using Linux bare-metal for all other tasks - you never have to leave Linux. As a bonus, it is much less disruptive to your workflow than dual booting (no need to reboot), and typically you can enable various QoL features like shared folders and bidirectional clipboard/drag-and-drop functionality or equivalent to improve the sharing of data between the host system and the VM. If all you'll use the Windows VM for is office work and other simple programs, VirtualBox will be more than enough for this, and it's very easy to use.
If you need to do GPU-intensive stuff in your VM and/or squeeze every last drop of performance out of the CPU cores assigned to the VM (e.g. play certain games that are not playable with Wine/DXVK/Steam Proton), look up QEMU/KVM virtualization and VFIO (https://old.reddit.com/r/VFIO/, it has a very nice wiki). There are tons of other learning resources around the Web for this, I believe even LTT made a video on the subject a while back.
@Flow-Live commented on GitHub (Sep 3, 2020):
I know my options, thanks for trying to help but that is not the help I need.
I will not run Windows in a vm, I do at work, I know how this works, I just won't do it at home.
I will keep this local install anyways, there might be times that I will need it.
I don't need to justify, what's the fuss about?
@FranciscoPombal commented on GitHub (Sep 3, 2020):
@Flow-Live
Hey, I'm just trying to help, it seemed like you weren't fully aware of your options. If you really can't use a VM instead of your dual boot installation, and you want to share qBittorrent configs between OSes, you'll have to wait until when/if qBittorrent adopts some kind of cross-platform config format.
@WaiYanMyintMo commented on GitHub (Sep 7, 2020):
Can qBittorrent adopt TOML? Seems like minimal changes would be needed due to it's similarity to traditional INI files
@dezza commented on GitHub (Oct 5, 2021):
This is too good an idea to let pass by. I fully support it.
@Fytch commented on GitHub (Dec 19, 2021):
I would also be very interested in this feature. I think the files in
AppData\Local\qBittorrent\BT_backupcontain hard paths which are not usable by both Windows and Linux but if the user could provide some kind of correspondence (like:D:\should correspond to/run/media/foo/) then that should work.@lc-guy commented on GitHub (Dec 3, 2022):
Bumping this
https://www.furorteutonicus.eu/2021/03/21/shared-qbittorrent-data-on-a-dual-boot-pc/ proposes a solution, but the issue remains that the savepaths in the fastresume / bencoded files are not compatible between windows and linux.
It would be great if there were a way to convert them (provide an equivalency in the linux qbit config for drive-to-folder correspondence, for example).
@xavier2k6 commented on GitHub (May 24, 2025):
ANNOUNCEMENT!
For anybody coming across this "Feature Request" & would like/love to see a potential implementation in the future!
Here are some options available to you:
Please select/click the 👍 &/or ❤
reactionsin the original/opening post of this ticket.Please feel free (If you have the "skillset") to create a "Pull Request" implementing what's being requested in this ticket.
(new/existing contributors/developers are always welcome)
DO:
DO NOT:
(These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)