Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portable version and associations #7236

Open
pasha-zzz opened this issue Aug 9, 2017 · 18 comments

Comments

Projects
None yet
6 participants
@pasha-zzz
Copy link

commented Aug 9, 2017

3.4.0 beta, Windows 10 x64
When associated with portable and launched via torrent/magnet - run w/o portable option
Must store config in profile directory near program, but uses APPDATA as usual
Launch as portable and enable associations, close. Then launch torrent/magnet.

@zeule

This comment has been minimized.

Copy link
Contributor

commented Aug 9, 2017

It was an intentional decision. Supposed workflow is to launch the portable instance and then open files via file associations and/or links afterwards. Then the newly launched instance will transfer file/link handling job to the already running portable one.

If a portable app registers itself in the Windows registry it becomes not portable anymore.

@pasha-zzz

This comment has been minimized.

Copy link
Author

commented Aug 9, 2017

But many people use portable mode for storing configs in program folder, not APPDATA. And this version asks for associations on startup even in portable mode.

@pasha-zzz

This comment has been minimized.

Copy link
Author

commented Aug 9, 2017

Maybe qBittorrent must search for profile/qBittorrent dir at startup and if exists - use it?

@zeule

This comment has been minimized.

Copy link
Contributor

commented Aug 9, 2017

I still don't understand what is the problem with the current behaviour. Do you suggest that he app should not try to establish file associations in portable mode?

@pasha-zzz

This comment has been minimized.

Copy link
Author

commented Aug 9, 2017

And what about --profile mode too? Non-portable mode, but still associated files launch app w/o profile... Maybe associate with files with current command line, exclude add torrent parameters?

@fnscar

This comment has been minimized.

Copy link

commented Aug 10, 2017

Hello!
How can I run qbittorrent 3.4.0 beta as portable version?

@pasha-zzz

This comment has been minimized.

Copy link
Author

commented Aug 10, 2017

--portable key... But if you use it in portable mode only (no standlone copy) - you may add QBT_PORTABLE=1 env variable

@fnscar

This comment has been minimized.

Copy link

commented Aug 10, 2017

--portable key... But if you use it in portable mode only (no standlone copy) - you may add QBT_PORTABLE=1 env variable

It works,thank you.

@zeule

This comment has been minimized.

Copy link
Contributor

commented Aug 13, 2017

And what about --profile mode too? Non-portable mode, but still associated files launch app w/o profile... Maybe associate with files with current command line, exclude add torrent parameters?

I don't feel myself experienced enough to decide, since I don't use Windows. @qbittorrent/frequent-contributors, could you suggest would that create a problem? BTW, how that is done on Mac OS? On Linux associations connect mime type and .desktop file, where environment and command line parameters can be provided. In a way, this is what @pasha-zzz proposes for Windows.

@glassez

This comment has been minimized.

Copy link
Member

commented Aug 13, 2017

Honestly, I did not understand what the expected behavior is for you...
IMO, portable version does not need to register file association at all. If you use --profile parameter, the association must use the command line with the same parameter.

@1265578519

This comment has been minimized.

Copy link

commented May 22, 2018

@fnscar 请问你找到便捷版本了吗?

@fnscar

This comment has been minimized.

Copy link

commented May 25, 2018

@1265578519 官方似乎没有提供w/o installer的版本。用7z从qb 3.4.0beta以上版本的安装包里提取文件然后以上面pasha-zzz大佬所说的方法运行就是便携版了。
另外也可以把--portable参数加在快捷方式里,用起来方便些。

@glassez

This comment has been minimized.

Copy link
Member

commented May 25, 2018

Language of bug tracker is English. Please use it, or lend your private conversation elsewhere (e.g., on the forum.)

@1265578519

This comment has been minimized.

Copy link

commented May 25, 2018

@fnscar 好的,,用--portable确实成功,配置文件放入当前目录下qBittorrent\profile\qBittorrent\config\qBittorrent.ini

@Fileover

This comment has been minimized.

Copy link

commented Sep 21, 2018

--portable key... But if you use it in portable mode only (no standlone copy) - you may add QBT_PORTABLE=1 env variable

Where have to add "QBT_PORTABLE=1" ?

@zeule

This comment has been minimized.

Copy link
Contributor

commented Sep 21, 2018

@Fileover

This comment has been minimized.

Copy link

commented Sep 21, 2018

It's too hard to "if (folder "profile" exist, runs as portable)", just asking 😁

@1265578519

This comment has been minimized.

Copy link

commented Dec 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.