285 Commits

Author SHA1 Message Date
Micah Lee
410a71b702 Add log() method to onionshare.common, which logs to stdout if in debug mode 2017-05-16 11:12:55 -07:00
Micah Lee
6b35a44d41 Renamed onionshare.helpers module to onionshare.common 2017-05-16 11:05:48 -07:00
Micah Lee
72e862124d Pass debug into the Onion and OnionShareGUI objects 2017-05-16 10:57:59 -07:00
Micah Lee
68e02dab1f Make UpdateChecker use the shared Onion object instead of creating a new one 2017-05-14 19:54:12 -07:00
Micah Lee
224f2bb0ad Now when you cancel connecting to Tor, it prompts you if you want to quit or open settings 2017-05-14 19:21:33 -07:00
Micah Lee
54607cb037 OnionShare connects fine when connection_type isn't bundled_tor, and it now displays errors and opens Settings when it can't connect to Tor 2017-05-14 18:46:54 -07:00
Micah Lee
498de14a3d Fix Settings dialog, make it so testing Tor with bundled_tor settings works 2017-05-14 18:36:31 -07:00
Micah Lee
f48e160816 Move owernship of the TorConnetionDialog objection from __init__.py into the OnionShareGUI class, and make it so when the Tor connection gets canceled, OnionShare quits 2017-05-14 18:30:45 -07:00
Micah Lee
162b53fbcd Make the Settings dialog's 'Test Tor Settings' button work again, with changes to the Onion object 2017-05-14 17:35:35 -07:00
Micah Lee
f2aa96089a Set the size of the TorConnectionDialog to avoid it resizing the window as elements are drawn 2017-05-14 17:27:05 -07:00
Micah Lee
8f0af317b5 Fixed various issues introduced by creating an singleton Onion object and passing it into the OnionShare object 2017-05-14 17:21:13 -07:00
Micah Lee
44f63b57b5 Import socks module included in the onionshare module, instead of the global one 2017-04-19 09:06:01 -07:00
Micah Lee
cc0c8e043e Made clicking Exit in the TorConnectionDialog exit the app 2017-04-17 20:49:50 -07:00
Micah Lee
915d548399 Began making a TorConnectionDialog, which handles connecting to the Tor network 2017-04-17 20:26:35 -07:00
Micah Lee
24540c1eef Capitalize comments 2017-04-17 19:38:42 -07:00
Micah Lee
43b25743da Move OnionShareGui into its own file, so __init__ is just GUI logic 2017-04-17 19:36:02 -07:00
Micah Lee
b94253e6ea Removed transparent_torification from the full app, and refactored OnionShare class to get passed in an Onion, and doesn't get passed in stealth. 2017-04-17 19:12:02 -07:00
Micah Lee
fb0b448e87 Made automatic check for update in a separate thread work 2017-04-17 13:22:33 -07:00
Micah Lee
3d43a11128 Make UpdateChecker use signals and slots to communicate tor status messages. And make the latest version http request differentiate between automatic requests and forced requests 2017-04-17 13:03:16 -07:00
Micah Lee
81a8ffe9ec Added UpdateThread to update_checker module, which checks for updates in a separate thread. And started implementing this in the OnionShareGui class, but have no finished 2017-04-15 19:07:02 -07:00
Micah Lee
772ccee8b5 Refactor UpdateChecker into a class that's a QObject, and make it use signals and slots to communicate 2017-04-15 18:55:41 -07:00
Micah Lee
b645dccad1 Handle UpdateCheckerSOCKSHTTPError exception in the update_checker module 2017-04-15 18:15:01 -07:00
Micah Lee
add0094ccd Created update_checker module, and logic to load http://elx57ue5uyfplgva.onion/latest-version.txt (this is the OnionShare website's onion site) to check for updates. Also added UX in the settings dialog to force checking for updates. Does not actually do so automatically yet. 2017-04-15 18:04:05 -07:00
Micah Lee
baa7c4bdd1 Added Tor SOCKS address and port settings 2017-04-15 16:33:41 -07:00
Micah Lee
9fcb6f0c93 Added autoupdate settings to Settings, and also to the settings dialog 2017-04-15 15:24:08 -07:00
Micah Lee
e6859f35dc Rearranged settings layout so that all Tor-related settings are inside of the 'How should OnionShare connect to Tor?' box, including the Test Tor Settings button 2017-04-15 13:05:11 -07:00
Micah Lee
9bbe8e7587 Change color of tor_status label in settings dialog to not be red, because nothing is actually wrong 2017-04-15 11:50:41 -07:00
Micah Lee
eb342d3e57 Added onionshare logo as settings window icon 2017-04-14 18:37:26 -07:00
Micah Lee
94cf86c3b4 Connecting to Tor now times out of 10 seconds 2017-04-14 10:00:56 -07:00
Micah Lee
f82cf01e6d Add Tor connection status to the main window status bar 2017-04-13 23:08:25 -07:00
Micah Lee
8677ea35e5 In the settings dialog, show Tor connection status when the connection type is bundled 2017-04-13 22:56:47 -07:00
Micah Lee
e295f90e68 Connecting to Tor in bundled mode now creates a temporary tor data dir, starts a new tor process, and connects to it. Also, refactored Settings dialog to allow Linux to use bundled tor as well 2017-04-13 22:22:34 -07:00
Micah Lee
3bbefd7267 Created a TorDialog class, and beginning to subprocess out to tor.exe 2017-04-08 19:00:31 -07:00
Micah Lee
9cf1011b0a Started to implement Bundled Tor connection settings 2017-04-08 18:10:17 -07:00
Micah Lee
ad64074a2b Add bundled Tor to Tor connection settings, and make it only work in Windows and Mac, and not in dev mode 2017-04-08 17:48:58 -07:00
Micah Lee
b515449498 Make onionshare respect settings that come from the Settings object, instead of the options dialog 2017-04-08 15:05:50 -07:00
Micah Lee
9c2e772205 Remove options from the main window 2017-04-08 14:50:17 -07:00
Micah Lee
42acb6d34e Added close_after_first_download and use_stealth to settings, and also to the GUI settings dialog 2017-04-08 13:42:07 -07:00
Micah Lee
677951c240 Catch Tor protocol error exceptions when starting an onion service (#344) 2017-02-22 16:45:52 -08:00
Micah Lee
e4649ac3b5 Rip out support for non-ephemeral onion services 2017-02-22 14:10:06 -08:00
Micah Lee
c991a407e2 Add new AuthenticationFailure exception, and make the Onion/stem code catch more exceptions when connecting to a Tor controller 2017-01-07 17:31:26 -08:00
Micah Lee
b8c7807b92 Moved onionshare and onionshare_gui logic directly into __init__.py files 2017-01-06 19:00:08 -08:00
Micah Lee
c0a26b7c6c Change GPL copyright from 2016 to 2017 2017-01-06 18:58:15 -08:00
Micah Lee
bb80efa00f When a share is active, disable the full advanced options group, not just the stealth checkbox 2016-12-29 14:35:57 -08:00
Micah Lee
9ae6df1b07 Remove the alert function, replace it with the Alert class 2016-12-29 14:23:19 -08:00
Micah Lee
23d9de8d44 Make automatic settings work with with Tor Browser 6.0.8 2016-12-29 12:57:58 -08:00
Micah Lee
8715838917 Handle new Tor controller errors in GUI 2016-12-29 10:34:40 -08:00
Micah Lee
1c53746dd5 Display information about tor when testing settings is successful 2016-12-29 10:03:29 -08:00
Micah Lee
94e756ac0d Onion now connects to the Tor controller using the settings in Settings (except automatic still needs some work), and the settings dialog handles error when testing settings 2016-12-29 09:58:13 -08:00
Micah Lee
52b00deb8a Created an alert class, so other parts of the GUI can make alert popups 2016-12-29 09:57:27 -08:00