Commit graph

317 commits

Author SHA1 Message Date
Micah Lee
3c0dc74407 Change subprocess bullet character in one more places 2021-06-17 12:16:02 -07:00
Micah Lee
51414f2c96 Syntax error 2021-06-17 11:47:36 -07:00
Micah Lee
13adda0af5 Change subprocess bullet character to ">" to remove all the headaches 2021-06-17 11:40:38 -07:00
Micah Lee
77ac8e7d54 Switch subprocess bullet in GUI too 2021-06-17 11:22:41 -07:00
Micah Lee
9c645beaef Switch subprocess bullet character 2021-06-17 11:18:13 -07:00
Micah Lee
04dcf72313 Don't display ANSI art banner in GUI mode because it prevents the app from opening in macOS from Finder 2021-06-17 11:17:55 -07:00
Micah Lee
d125a5004b Find docker.exe in the path, in case Docker Desktop changes its location in the future 2021-06-17 10:31:07 -07:00
Micah Lee
3105a2c229 Change a bunch of stuff so Windows will work again 2021-06-16 16:55:25 -07:00
Micah Lee
9278848adf
Add --security-opt=no-new-privileges:true to docker call 2021-06-15 16:37:42 -07:00
Micah Lee
05f00ca53f
Fix bugs with testing if docker is ready 2021-06-10 14:46:31 -07:00
Micah Lee
a711ec1ded
Make the temp directories world-readable so that docker containers can access them regardless of which user created them 2021-06-10 14:41:26 -07:00
Micah Lee
429d1e3f08
Display banner and pretty terminal output in GUI mode too 2021-06-10 12:03:24 -07:00
Micah Lee
38ea24393a
Beautiful CLI colors and formatting 2021-06-10 11:39:26 -07:00
Micah Lee
46c73329a5
Switch from termcolor to colorama 2021-06-10 10:24:28 -07:00
Micah Lee
429f5dcf43
Set one more part of the banner to have a black background 2021-06-09 17:36:09 -07:00
Micah Lee
05b5d0bb3e
Set black background for banner 2021-06-09 17:35:00 -07:00
Micah Lee
918e5fa306
Display banner 2021-06-09 17:31:06 -07:00
Micah Lee
1144fd9f87
Make the CLI fully functional 2021-06-09 17:00:39 -07:00
Micah Lee
73d412501c
Move the ConvertToPixels task validation into global_common so the CLI and GUI can share it 2021-06-09 16:32:06 -07:00
Micah Lee
8aaf7ebcf1
Start implementing CLI args, and start with validating custom containers and pulling the latest container 2021-06-09 16:15:19 -07:00
Micah Lee
6ff68f88ea
Refactor dangerzone to move GUI code into its own module 2021-06-09 15:24:03 -07:00
Micah Lee
36c4e290a2
Find PDF viewers again 2021-06-09 13:28:56 -07:00
Micah Lee
b8e8c74161
Make an ApplicationWrapper to avoid inheriting from QApplication 2021-06-09 13:25:22 -07:00
Micah Lee
791723db20
GlobalCommon does not need temp dirs, and fix bug with finding Mac PFD viewers 2021-06-09 11:52:49 -07:00
Micah Lee
803844e832
Remove temporary directory output 2021-06-08 15:29:34 -07:00
Micah Lee
2f97f344a9
Fix typo with using a custom container 2021-06-08 15:29:14 -07:00
Micah Lee
cdc29ee8dd
Fix --custom-container option 2021-04-15 13:35:18 -07:00
Micah Lee
4450146028
Version bump to 0.1.5 and update changelog 2021-01-04 15:31:12 -08:00
Micah Lee
78e23a1e8b
Set QT_MAC_WANTS_LAYER env variable to work in Big Sur 2020-12-30 10:40:28 -08:00
Micah Lee
87be2bbc7d
Fix detecting if dangerzone or dangerzone-container is running in Windows, update docker.exe path, fix Windows build scripts to include to docker-container.exe symlink 2020-10-29 10:43:23 -07:00
Micah Lee
ac36006d0d
Merge branch 'master' into version-0.1.4 2020-10-28 16:52:45 -07:00
Micah Lee
1116c9a029
Make Windows docker link clickable, and make Windows installer add a start menu shortcut 2020-10-28 16:48:16 -07:00
Micah Lee
269cf5b431
Add Windows changes 2020-10-27 11:55:21 -07:00
Micah Lee
50044a05fa
Remove QVariant, to finish porting from PyQt5 to PySide2 2020-10-26 15:12:17 -07:00
Micah Lee
92b19fe1b3
Allow docker installed from snap package 2020-10-26 15:11:41 -07:00
Micah Lee
31b63e5471
Start switching from PyQt5 to PySide2 2020-10-26 14:52:45 -07:00
Micah Lee
9c0f61488a
Update changelog and version bump, and update CircleCI to support Ubuntu 20.10 and Fedora 32 2020-10-26 14:07:14 -07:00
Micah Lee
13285cd024
Suppress stderr from GUI output and display it in the terminal in dark; add a dangerzone poetry entrypoint; and update dependencies 2020-10-14 09:41:23 -07:00
Micah Lee
753134dc3f
Version bump to 0.1.3 and update changelog 2020-09-25 13:43:22 -07:00
Giacomo Rossetto
3d456f8f5a
Check if CFBundleName exit 2020-04-10 14:09:21 +02:00
Micah Lee
e798da9a99
Version bump to 0.1.2 and update changelog 2020-04-09 16:23:15 -07:00
Micah Lee
9c90a0fa33
Rename dangerzone-container commands to remove hiphens and underscores, because old and new versions of click treat them differently 2020-04-09 13:58:22 -07:00
Micah Lee
2674f1457a
Version bump to 0.1.1 2020-03-17 11:11:47 -07:00
Micah Lee
4eba0087e7
Version bump to 0.1.1.dev1 2020-03-16 17:07:43 -07:00
Micah Lee
3a1b6d457f
All dangerzone-container subprocesses get called from global_commons, and if the user cancels or fails the authentication dialog, handle gracefully 2020-03-16 14:26:07 -07:00
Micah Lee
cf367adcfa
This creates a separate script dangerzone-container which is a wrapper for running the container. This lets us run dangerzone as unprivileged, but dangerzone-container as privileged, to avoid adding the user to the dangerzone group. 2020-03-13 16:49:53 -07:00
Micah Lee
0b1cd9e9ef
If docker service is not running, try to start it 2020-03-12 16:00:30 -07:00
Micah Lee
2c0f0acbdf
When finding PDF viewers, skip apps that do not have Info.plist files (as is the case with com.apple.system-library) 2020-03-12 15:21:09 -07:00
Eike Rathke
46c741a634 Fix filter ODF extension .ods
application/vnd.oasis.opendocument.spreadsheet  ods
2020-03-11 22:43:26 +01:00
Micah Lee
d519303150
Add --custom-container option, to run a container built locally instead of requiring download from dockerhub 2020-03-06 18:08:15 +05:30
Micah Lee
8845ac6440
Allow opening docm files 2020-03-03 19:23:46 +05:30
Micah Lee
469680565b
Merge branch 'master' of github.com:firstlookmedia/dangerzone 2020-03-02 21:12:08 -08:00
Micah Lee
322416eee8
Fix icon path 2020-03-02 21:11:54 -08:00
Micah Lee
271ac9641b
Version bump to 0.1 2020-02-28 17:38:49 -08:00
Micah Lee
ed6dc43276
When you activate dangerzone in macOS and no windows are open, open a blank window 2020-02-28 17:35:11 -08:00
Micah Lee
2f77159e3f
Version bump to 0.0.3 2020-02-27 15:45:02 -08:00
Micah Lee
dd6c336b85
Force updating the container if flmcode/dangerzone image is not there, and show slightly more output when pulling the image 2020-02-27 15:44:13 -08:00
Micah Lee
389f9db421
Use container from dockerhub instead of building it 2020-02-27 15:18:19 -08:00
Micah Lee
fc2fcf6bd3
Version bump to 0.0.2 2020-02-27 09:56:03 -08:00
Micah Lee
52cbbca7c6
Update container 2020-02-26 17:26:18 -08:00
Micah Lee
4c9bbfe217
Refactor Common into GlobalCommon (for the whole app) and Common (for a window), and allow multiple dangerzone windows at once in macOS 2020-02-26 15:46:23 -08:00
Micah Lee
cb38473573
Allow multiple windows to be open at once 2020-02-26 14:32:57 -08:00
Micah Lee
e18a898497
Make docker installer work the same way for Windows too 2020-02-26 14:01:43 -08:00
Micah Lee
2d4ca86985
Simplify docker installer, make it inform the user to install docker and run it, instead of trying to do that on behalf of the user 2020-02-26 13:39:44 -08:00
Micah Lee
163f482fd1
change version to 0.0.1 to test packaging 2020-02-21 16:29:00 -08:00
Micah Lee
45f78637af
Add build script and instructions for fedora 2020-02-21 16:04:11 -08:00
Micah Lee
ae7c919d8e
Use docker for ubuntu and debian, and provide GUI for adding user to docker group 2020-02-21 15:07:49 -08:00
Micah Lee
1f2607f44a
Handle macOS file open events 2020-02-21 10:42:56 -08:00
Micah Lee
2bfc3545ea
Remove dangerzone from macOS application list 2020-02-21 09:30:05 -08:00
Micah Lee
931effc7ce
In Windows, disable opening of safe PDF, make saving PDF required, and after safe PDF has been created, open Windows explorer with the safe PDF selected 2020-02-20 16:53:25 -08:00
Micah Lee
d01f2eedea
Rename "open_find_viewer" to "open_pdf_viewer" 2020-02-20 14:32:09 -08:00
Micah Lee
583f8de8ff
Move Windows icon into share, and make get_resource_path work in Windows 2020-02-20 13:41:56 -08:00
Micah Lee
5747f338dc
Make sure to pass startupinfo into all subprocesses that are run in windows 2020-02-20 12:31:57 -08:00
Micah Lee
65121ed729
Also pass common into launch_docker_windows function 2020-02-20 09:46:34 -08:00
Micah Lee
81627379f6
Pass common into Installer, so Docker Desktop for Windows installer will run 2020-02-20 09:38:49 -08:00
Micah Lee
7a22b98156
Add notice about building container maybe taking a long time 2020-02-13 16:12:18 -08:00
Micah Lee
e3069e9e05
Fail early if container pull or build fail 2020-02-13 15:55:28 -08:00
Micah Lee
791d930a55
In Windows, add startupinfo to subprocess calls to prevent terminal windows from opening in the background 2020-02-13 15:33:08 -08:00
Micah Lee
17a585f614
Make DockerInstaller also install the Windows version of Docker 2020-02-11 16:48:52 -08:00
Micah Lee
ff78578910
If docker is installed but not running, use DockerInstaller to launch it 2020-02-07 15:39:48 -08:00
Micah Lee
b04b6ee96c
When canceling the docker installer, reject the dialog immediately before quitting the threads, and try to gracefully quit the threads 2020-02-07 15:36:21 -08:00
Micah Lee
329fa4639b
Fix get_resource_path for Mac app bundle 2020-02-07 12:07:55 -08:00
Micah Lee
13aac3348a
After downloading Docker, install it, launch it for the first time, and once it's ready, re-launch dangerzone 2020-02-07 11:29:43 -08:00
Micah Lee
abb56b68ac
In macOS, download Docker Desktop for the user if it is not installed 2020-02-06 17:12:01 -08:00
Micah Lee
70889646be
Display the dangerous document filename on the tasks widget 2020-01-13 14:46:06 -08:00
Micah Lee
51cd76a456
Allow browsing for all support file types, update README to include supported file types, and update container that supports them all 2020-01-13 12:02:50 -08:00
Micah Lee
46585f15a8
Start printing container output to stdout as well, and update container 2020-01-10 17:23:19 -08:00
Micah Lee
90df7894aa
Make tasks more robust in handling failure by checking for return codes 2020-01-10 16:56:50 -08:00
Micah Lee
3928a3fa5a
Switch container to ubuntu:20.04, because the file command in ubuntu:18.04 failed at properly recogonnizing a .docx MIME type, and 18.04 is soon to be released 2020-01-09 16:58:17 -08:00
Micah Lee
13452a41aa
Fix opening save PDFs in Linux, and add some spacing in settings widget 2020-01-09 15:01:15 -08:00
Micah Lee
3be1d63330
Open in safe PDFs in macOS 2020-01-09 14:37:04 -08:00
Micah Lee
816a8fecd7
Remove css padding because it looks totally wrong in macOS 2020-01-09 13:13:03 -08:00
Micah Lee
0f464dcb0c
Detect the string "dangerzone" in docker output, instead of "localhost/dangerzone" 2020-01-09 13:11:42 -08:00
Micah Lee
dd295271f5
Make work in macOS using docker instead of podman 2020-01-09 13:09:17 -08:00
Micah Lee
48fd8ece40
Alphebatize the OCR language dropdown 2020-01-09 09:47:33 -08:00
Micah Lee
e1d0163504
Display command being executed in each task 2020-01-08 14:26:26 -08:00
Micah Lee
e4e5f71419
Make passing in the filename an argument instead of an option, so desktop file will work properly 2020-01-07 17:20:14 -08:00
Micah Lee
0aa7ff5f7c
Don't let you open safe PDFs in dangerzone 2020-01-07 17:12:23 -08:00
Micah Lee
e85191b498
Debian packaging 2020-01-07 17:10:54 -08:00
Micah Lee
6bac63fb5c
Make update containers checkbox required if the dangerzone podman image does not exist 2020-01-07 16:52:46 -08:00
Micah Lee
5e0c521293
Pass OCR environment variables into container 2020-01-07 16:46:04 -08:00
Micah Lee
3ea50a477d
Either save or open must be checked 2020-01-07 16:27:02 -08:00
Micah Lee
de2ae17544
If not saving, then save it to a temp file instead 2020-01-07 16:22:16 -08:00
Micah Lee
fcc2742a36
Add icon; when closing window use correct location of Qt app; print the command before executing the PDF reader 2020-01-07 16:18:49 -08:00
Micah Lee
cbc4a1e7ea
Save and open document, as needed 2020-01-07 16:14:43 -08:00
Micah Lee
bdcd61b964
Clicking start starts running the tasks 2020-01-07 16:09:08 -08:00
Micah Lee
dbff6b4b79
Make save browse button let you select an output file 2020-01-07 15:41:32 -08:00
Micah Lee
85644ad097
When passing in a filename, autoselect that document 2020-01-07 15:35:49 -08:00
Micah Lee
c9e32ef82d
Allow selecting a document, then show settings 2020-01-07 15:32:21 -08:00
Micah Lee
b527776e28
Start making settings widget 2020-01-07 14:21:39 -08:00
Micah Lee
66cf6395c8
Add support for converting xlsx to pdf 2020-01-07 11:15:06 -08:00
Micah Lee
3e1ad6376c
Add support for converting docx to pdf using headless libreoffice 2020-01-07 10:22:11 -08:00
Micah Lee
db23ced6c5
Rename container scripts to document-to-pixels and pixels-to-pdf, and add tesseract dependency 2020-01-07 09:32:51 -08:00
Micah Lee
195386d526
Finish making convert to safe PDF work 2020-01-06 18:17:48 -08:00
Micah Lee
bcad2f6256
Convert to pixel data 2020-01-06 17:02:12 -08:00
Micah Lee
fe028e5f0c
Move container to its own folder 2020-01-06 14:50:44 -08:00
Micah Lee
0b9823a34e
Initial commit 2020-01-06 14:40:09 -08:00