File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -143,8 +143,8 @@ test-gpg: test-prereqs ## Runs tests for SD GPG functionality
143143# Client autologin variables
144144XDOTOOL_PATH =$(shell command -v xdotool)
145145OATHTOOL_PATH =$(shell command -v oathtool)
146- PHONY : run-client
147- run-client : assert-dom0 # # Run client application (automatic login)
146+ . PHONY : run-deps
147+ run-deps :
148148ifeq ($(XDOTOOL_PATH ) ,)
149149 @echo $(XDOTOOL_PATH)
150150 @echo 'please install xdotool with "sudo qubes-dom0-update xdotool"'
@@ -154,6 +154,9 @@ ifeq ($(OATHTOOL_PATH),)
154154 @echo 'please install oathtool with "sudo qubes-dom0-update oathtool"'
155155 @false
156156endif
157+
158+ PHONY : run-client
159+ run-client : assert-dom0 run-deps # # Run client application (automatic login)
157160 qvm-run --service sd-app qubes.StartApp+press.freedom.SecureDropClient
158161 @sleep 3
159162 @xdotool type " journalist"
@@ -164,6 +167,17 @@ endif
164167 @xdotool type $(shell oathtool --totp --base32 JHCOGO7VCER3EJ4L)
165168 @xdotool key Return
166169
170+ PHONY : run-app
171+ run-app : assert-dom0 run-deps # # Run SecureDrop App (automatic login)
172+ qvm-run --service sd-app qubes.StartApp+press.freedom.SecureDropApp
173+ @sleep 5
174+ @xdotool type " journalist"
175+ @xdotool key Tab
176+ @xdotool type " correct horse battery staple profanity oil chewy"
177+ @xdotool key Tab
178+ @xdotool type $(shell oathtool --totp --base32 JHCOGO7VCER3EJ4L)
179+ @xdotool key Return
180+
167181# Not requiring dom0 for linting as that requires extra packages, which we're
168182# not installing on dom0, so are only in the developer environment, i.e. Work VM
169183
Original file line number Diff line number Diff line change @@ -163,7 +163,8 @@ def main():
163163 ).splitlines ()
164164 subprocess .check_call (["qvm-shutdown" , "--wait" ] + all_vms )
165165 print (f"\n \n Your workstation is provisioned with PR #{ args .pr_id } ." )
166- print ("\n \n You can start the client with `make run-client`." )
166+ target = "app" if args .app else "client"
167+ print (f"\n \n You can start the { target } with `make run-{ target } `." )
167168
168169
169170if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments