{"action":"created","issue":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/5214","repository_url":"https://api.github.com/repos/qbittorrent/qBittorrent","labels_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/5214/labels{/name}","comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/5214/comments","events_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/5214/events","html_url":"https://github.com/qbittorrent/qBittorrent/pull/5214","id":152860046,"number":5214,"title":"Implement configurations and portable mode. Closes #465","user":{"login":"evsh","id":394621,"avatar_url":"https://avatars.githubusercontent.com/u/394621?v=3","gravatar_id":"","url":"https://api.github.com/users/evsh","html_url":"https://github.com/evsh","followers_url":"https://api.github.com/users/evsh/followers","following_url":"https://api.github.com/users/evsh/following{/other_user}","gists_url":"https://api.github.com/users/evsh/gists{/gist_id}","starred_url":"https://api.github.com/users/evsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evsh/subscriptions","organizations_url":"https://api.github.com/users/evsh/orgs","repos_url":"https://api.github.com/users/evsh/repos","events_url":"https://api.github.com/users/evsh/events{/privacy}","received_events_url":"https://api.github.com/users/evsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":50,"created_at":"2016-05-03T19:53:22Z","updated_at":"2016-05-12T13:43:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/5214","html_url":"https://github.com/qbittorrent/qBittorrent/pull/5214","diff_url":"https://github.com/qbittorrent/qBittorrent/pull/5214.diff","patch_url":"https://github.com/qbittorrent/qBittorrent/pull/5214.patch"},"body":"It may be useful to have different configurations either for portable versions or for debugging purposes. To implement this we add two options, avaliable via command line switches\r\n1. An option to change configuration name (`--configuration`). The name supplied via this option is appended to `QCoreApplication::applicationName()` to form `qBittorrent_<conf_name>` name for the configuration files.\r\n2. An option to provide a path do directory where all the settings are stored (kind of profile directory). There is a shortcut `--portable` which means \"use directory `profile` near the executable location\".\r\n\r\nIn order to implement that we have to perform initialisation of the profile directories before the `SettingStorage` and `Preferences` singletones are initialised. Thus, options parsing shall be performed without defaults read from preferences.\r\n\r\nUpdate:\r\nAdded command line options to implement both the different configurations and portable mode. "},"comment":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/comments/218760903","html_url":"https://github.com/qbittorrent/qBittorrent/pull/5214#issuecomment-218760903","issue_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/5214","id":218760903,"user":{"login":"glassez","id":5063477,"avatar_url":"https://avatars.githubusercontent.com/u/5063477?v=3","gravatar_id":"","url":"https://api.github.com/users/glassez","html_url":"https://github.com/glassez","followers_url":"https://api.github.com/users/glassez/followers","following_url":"https://api.github.com/users/glassez/following{/other_user}","gists_url":"https://api.github.com/users/glassez/gists{/gist_id}","starred_url":"https://api.github.com/users/glassez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glassez/subscriptions","organizations_url":"https://api.github.com/users/glassez/orgs","repos_url":"https://api.github.com/users/glassez/repos","events_url":"https://api.github.com/users/glassez/events{/privacy}","received_events_url":"https://api.github.com/users/glassez/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T13:43:01Z","updated_at":"2016-05-12T13:43:01Z","body":">current meanings of --portable and --profile are identical.\r\n\r\nReally?\r\n>Option --portable is a shortcut for --profile=\\<exe dir\\>/profile\r\n\r\nThey are identical in only one case. And the rest?\r\nWhen I want to use a different profile (e.g. for testing), it does not mean that I want to enable portable mode."}}