Commit Graph

350 Commits

Author SHA1 Message Date
Micah Lee
75d286386b
Merge branch 'censorship_automatically_attempt_and_reconnect' of https://github.com/mig5/onionshare into mig5-censorship_automatically_attempt_and_reconnect 2021-12-04 20:40:58 -08:00
Micah Lee
a71a4f9baa
Merge branch 'develop' of https://github.com/a1346054/onionshare into a1346054-develop 2021-12-04 20:34:07 -08:00
Micah Lee
27ee69a220
Merge pull request #1478 from mig5/fetch-builtin-bridges
Fetch the built-in bridges from Tor's Censorship Circumvention API, rather than hardcode them
2021-12-04 20:28:04 -08:00
Micah Lee
c8ba508d26
Merge branch 'develop' into 1470_tempfiles 2021-12-01 20:37:45 -08:00
Micah Lee
8ec9a24af1
Explicitly cleanup temp files and dirs 2021-12-01 20:34:54 -08:00
Miguel Jacq
81cf9aabe8
Fix conflicts 2021-11-30 10:54:17 +11:00
Miguel Jacq
3273832da7
Make the saving of the automatically-obtained bridges reusable (move it to CensorshipCircumvention class). Add the same functionality used in TorConnectionWidget to TorConnectionDialog. 2021-11-30 10:50:47 +11:00
Miguel Jacq
b151eeb3c3
Make sanity checking of bridges a reusable component in cli.Common, so we can reuse it for automatic bridge fetching in censorship circumvention 2021-11-30 10:01:14 +11:00
Hosted Weblate
a4741a73d4
Translated using Weblate (German)
Currently translated at 98.2% (56 of 57 strings)

Translated using Weblate (Catalan)

Currently translated at 25.0% (2 of 8 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (2 of 2 strings)

Translated using Weblate (Catalan)

Currently translated at 28.5% (2 of 7 strings)

Translated using Weblate (Catalan)

Currently translated at 6.6% (2 of 30 strings)

Translated using Weblate (Serbian (latin))

Currently translated at 100.0% (25 of 25 strings)

Translated using Weblate (Serbian (latin))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/sr_Latn/

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: fadelkon <fadelkon@posteo.net>
Co-authored-by: ilumium <weblate@penfrat.net>
Co-authored-by: tics tics <ticse@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-features/ca/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-features/de/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-help/ca/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-index/ca/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-security/ca/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/sr_Latn/
Translation: OnionShare/Doc - Features
Translation: OnionShare/Doc - Help
Translation: OnionShare/Doc - Index
Translation: OnionShare/Doc - Security
Translation: OnionShare/Doc - Tor
2021-11-28 20:16:51 +01:00
Hosted Weblate
206d021cf6
Translated using Weblate (Galician)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/gl/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (7 of 7 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2 of 2 strings)

Translated using Weblate (Serbian (latin))

Currently translated at 100.0% (2 of 2 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (20 of 20 strings)

Translated using Weblate (Serbian (latin))

Currently translated at 100.0% (20 of 20 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2 of 2 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 20.0% (6 of 30 strings)

Translated using Weblate (Serbian (latin))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/sr_Latn/

Translated using Weblate (Portuguese (Portugal))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/pt_PT/

Translated using Weblate (German)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/de/

Added translation using Weblate (Hungarian)

Added translation using Weblate (Punjabi)

Added translation using Weblate (Czech)

Added translation using Weblate (Bulgarian)

Added translation using Weblate (Bengali)

Added translation using Weblate (Esperanto)

Added translation using Weblate (Lithuanian)

Added translation using Weblate (Galician)

Added translation using Weblate (Gujarati)

Co-authored-by: 4s3ti <4s3ti@4s3ti.net>
Co-authored-by: Blax <blacxbloc@protonmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Jo W. Burner <g0dk8pip@duck.com>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Xosé M <xosem@disroot.org>
Co-authored-by: tics tics <ticse@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-features/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-help/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-index/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-index/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-sphinx/zh_Hans/
Translation: OnionShare/Doc - Features
Translation: OnionShare/Doc - Help
Translation: OnionShare/Doc - Index
Translation: OnionShare/Doc - Install
Translation: OnionShare/Doc - Sphinx
2021-11-26 19:53:28 +01:00
Hosted Weblate
ef1be43bd8
Translated using Weblate (Turkish)
Currently translated at 100.0% (33 of 33 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (60 of 60 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (33 of 33 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (60 of 60 strings)

Translated using Weblate (Ukrainian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/uk/

Translated using Weblate (Japanese)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/

Translated using Weblate (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/zh_Hans/

Translated using Weblate (Icelandic)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/is/

Translated using Weblate (Turkish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/tr/

Translated using Weblate (Spanish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/es/

Co-authored-by: Eric <spice2wolf@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
Co-authored-by: Taro Tanaka <anon_japan@protonmail.com>
Co-authored-by: Zuhualime Akoochimoya <zakooch@protonmail.ch>
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-features/tr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-features/uk/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/tr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/uk/
Translation: OnionShare/Doc - Features
Translation: OnionShare/Doc - Tor
2021-11-25 16:52:57 +01:00
Miguel Jacq
06a3599fe1
Built-in bridge refactoring.
Store the built-in bridges in OnionShare settings as a dict, and try writing those into the torrc if present.

If they aren't present in OnionShare settings, use the hardcoded templates instead.

Fetch the latest built-in bridges over Tor, once connected to Tor.

If we can't fetch the bridges over Tor, fall back to Meek (domain-fronting) and try again.

Then write those as the dict to the OnionShare settings, to take precedence next time.
2021-11-24 17:55:47 +11:00
Micah Lee
e1b89652cc
Merge branch 'develop' of https://hosted.weblate.org/git/onionshare/translations into develop 2021-11-23 20:29:44 -08:00
Micah Lee
a4985e7029
Support sending a custom Content-Security-Policy header in Website mode 2021-11-23 18:44:14 -08:00
Miguel Jacq
19072503a9
Fetch the built-in bridges from Tor's Censorship Circumvention API, rather than hardcode them 2021-11-23 15:28:40 +11:00
Micah Lee
236bc33bc8
Don't try adding a folder if the user clicks cancel, and add additional logging 2021-11-16 18:15:07 -08:00
Micah Lee
f09bb66425
Snap successfully builds meek-client, and WIP getting tor to connect 2021-11-14 17:52:40 -08:00
Micah Lee
0f63c89a59
Detect Flatpak via environment variable 2021-11-14 17:16:21 -08:00
Micah Lee
6b521c152e
Show the alert on the the dragEnterEvent 2021-11-14 16:11:39 -08:00
Micah Lee
ab800c577a
More thoroughly remove drag and drop to prevent the drop label from getting created 2021-11-14 16:00:00 -08:00
Micah Lee
ad9cacd44a
Drag and drop string does not use filename 2021-11-14 15:49:30 -08:00
Micah Lee
3eb912bf5a
Move drag and drop logic into dropEvent 2021-11-14 15:46:20 -08:00
Micah Lee
bfce4b005c
Disable drag and drop in flatpak 2021-11-14 15:08:06 -08:00
Micah Lee
94c588d0ce
Make the FileSelection widget use native file browser widgets under Flatpak in order to enable the sandbox 2021-11-14 14:24:02 -08:00
Micah Lee
365ddc5e34
Merge branch 'develop' into 1459_linux_packaging 2021-11-14 13:28:45 -08:00
Saptak Sengupta
182b6bb67b
Merge pull request #1454 from Max1Truc/fix-bad-locale
Fix "KeyError: 'fr'" in desktop strings.py
2021-11-14 19:05:14 +05:30
Micah Lee
be1772b2a4
Fix tor paths for flatpak 2021-11-12 17:18:28 -08:00
Micah Lee
3464a24e69
Add logging 2021-11-12 16:21:17 -08:00
Miguel Jacq
dbae142a87
Resolve conflicts in locale 2021-11-12 10:56:15 +11:00
Micah Lee
da94b92d18
Merge branch 'censorship' into develop 2021-11-11 14:42:14 -08:00
Hosted Weblate
a80cd7f2a6
Translated using Weblate (Indonesian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/id/

Added translation using Weblate (Indonesian)

Translated using Weblate (Polish)

Currently translated at 100.0% (31 of 31 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (58 of 58 strings)

Translated using Weblate (French)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/fr/

Translated using Weblate (Portuguese (Brazil))

Currently translated at 89.2% (25 of 28 strings)

Translated using Weblate (French)

Currently translated at 100.0% (31 of 31 strings)

Translated using Weblate (French)

Currently translated at 100.0% (20 of 20 strings)

Translated using Weblate (French)

Currently translated at 100.0% (23 of 23 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (27 of 27 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (9 of 9 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 95.8% (23 of 24 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (11 of 11 strings)

Translated using Weblate (Portuguese (Portugal))

Currently translated at 3.3% (1 of 30 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (31 of 31 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 98.2% (57 of 58 strings)

Translated using Weblate (French)

Currently translated at 17.3% (4 of 23 strings)

Translated using Weblate (French)

Currently translated at 100.0% (17 of 17 strings)

Translated using Weblate (French)

Currently translated at 100.0% (30 of 30 strings)

Translated using Weblate (French)

Currently translated at 47.0% (8 of 17 strings)

Translated using Weblate (French)

Currently translated at 47.0% (8 of 17 strings)

Translated using Weblate (French)

Currently translated at 100.0% (31 of 31 strings)

Translated using Weblate (French)

Currently translated at 100.0% (7 of 7 strings)

Translated using Weblate (French)

Currently translated at 100.0% (20 of 20 strings)

Translated using Weblate (French)

Currently translated at 96.6% (29 of 30 strings)

Translated using Weblate (French)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/fr/

Translated using Weblate (French)

Currently translated at 100.0% (31 of 31 strings)

Translated using Weblate (Polish)

Currently translated at 87.9% (51 of 58 strings)

Translated using Weblate (French)

Currently translated at 96.7% (30 of 31 strings)

Translated using Weblate (French)

Currently translated at 13.0% (3 of 23 strings)

Translated using Weblate (French)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/fr/

Translated using Weblate (Polish)

Currently translated at 75.8% (44 of 58 strings)

Translated using Weblate (French)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/fr/

Translated using Weblate (Polish)

Currently translated at 100.0% (28 of 28 strings)

Translated using Weblate (Polish)

Currently translated at 70.6% (41 of 58 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (9 of 9 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (24 of 24 strings)

Translated using Weblate (Polish)

Currently translated at 67.8% (19 of 28 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (11 of 11 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (27 of 27 strings)

Translated using Weblate (Polish)

Currently translated at 90.9% (10 of 11 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (24 of 24 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (11 of 11 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (27 of 27 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (9 of 9 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (31 of 31 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (28 of 28 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (58 of 58 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (24 of 24 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (24 of 24 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (58 of 58 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (27 of 27 strings)

Translated using Weblate (Greek)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/el/

Translated using Weblate (Spanish)

Currently translated at 98.2% (57 of 58 strings)

Translated using Weblate (Spanish)

Currently translated at 98.2% (57 of 58 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (24 of 24 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (28 of 28 strings)

Translated using Weblate (Polish)

Currently translated at 88.8% (24 of 27 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (31 of 31 strings)

Translated using Weblate (Spanish)

Currently translated at 81.0% (47 of 58 strings)

Co-authored-by: AO Localisation Lab <ao@localizationlab.org>
Co-authored-by: EdwardCage <contact@edwardcage.pro>
Co-authored-by: Gabriel Cardoso <g.cardoso@mailfence.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Co-authored-by: Rafał Godek <p3run@tutanota.com>
Co-authored-by: Raul <rgarciag@tutanota.com>
Co-authored-by: Username1234567890 <danarauz@protonmail.com>
Co-authored-by: Yukik4ze <hikarukireina@gmail.com>
Co-authored-by: Zuhualime Akoochimoya <zakooch@protonmail.ch>
Co-authored-by: aezjrareareare <jeromechaland@riseup.net>
Co-authored-by: carlosm2 <carlosm2@riseup.net>
Co-authored-by: george kitsoukakis <norhorn@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-advanced/el/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-advanced/es/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-advanced/fr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-advanced/pl/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-advanced/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-develop/el/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-develop/es/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-develop/fr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-develop/pl/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-develop/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-features/el/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-features/es/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-features/fr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-features/pl/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-features/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-help/el/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-help/fr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-help/pl/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-help/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/el/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/es/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/fr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/pl/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/uk/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-security/el/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-security/pl/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-security/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/el/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/fr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/pl/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/pt_PT/
Translation: OnionShare/Doc - Advanced
Translation: OnionShare/Doc - Develop
Translation: OnionShare/Doc - Features
Translation: OnionShare/Doc - Help
Translation: OnionShare/Doc - Install
Translation: OnionShare/Doc - Security
Translation: OnionShare/Doc - Tor
2021-11-11 14:31:22 +01:00
Miguel Jacq
e2603ed7ad
Better detection of different types of bridges, different sources, and multiple bridges of the same type 2021-11-11 18:46:22 +11:00
Miguel Jacq
b727a9651f
Initial work on supporting the option to automatically attempt to fetch bridges based on the user's location if Tor fails to connect (censorship circumvention) 2021-11-11 17:33:19 +11:00
Micah Lee
d88005d550
When Tor is disconnected, hide the Check for Updates button in the Settings tab 2021-11-09 18:57:07 -08:00
Micah Lee
73b570f4b4
Check if Tor is connected instead of if the Tor controller is authenticated 2021-11-09 18:49:23 -08:00
Miguel Jacq
627c185fcb
Support sending a custom Content-Security-Policy header in Website mode 2021-11-08 16:31:05 +11:00
Micah Lee
9430439b5f
Fix meek-client in Windows 2021-11-07 12:12:12 -08:00
Micah Lee
472e383b7d
Fix settings error color in dark mode 2021-11-06 21:02:28 -07:00
Micah Lee
f915f911c6
Make autoupdate group in Settings Tab centered 2021-11-06 20:55:50 -07:00
Micah Lee
0e2d2a1e46
macOS seems to have close buttons that work on their own now 2021-11-06 20:52:05 -07:00
Micah Lee
fa70368a8d
Copy snowflake-client from macOS Tor Browser 2021-11-06 20:46:52 -07:00
Micah Lee
4e62b8831a
Get tor from Tor Browser 11.0a10 on all platforms 2021-11-06 20:42:51 -07:00
Micah Lee
7448f76f2e
Respect --local-only 2021-11-06 20:17:02 -07:00
Micah Lee
7b162b4bc7
In all modes, if Tor isn't connected display a message instead of showing the mode content 2021-11-06 20:05:20 -07:00
Micah Lee
7da1ac187b
Remove sticky "Disconnected from Tor" message (patch thanks to @mig5) 2021-11-06 19:20:36 -07:00
Max1Truc
e9ef087c8f Fix "KeyError: 'fr'" in desktop strings.py 2021-10-27 11:47:17 +02:00
Micah Lee
de3c95cc50
Set self.torr_settings_tab to None _before_ deleting the tab 2021-10-26 22:12:22 -07:00
Micah Lee
bde94d37fc
Don't delete any custom bridges that are set 2021-10-26 22:09:24 -07:00
Micah Lee
706a04242f
Show message in Tor Settings tab if any tabs have active services, to prevent the user from changing settings without stopping them 2021-10-26 22:00:39 -07:00
Micah Lee
53c192665b
Refactor Tor Settings tab to use the new settings 2021-10-26 21:33:58 -07:00