Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
2e63aad3
Commit
2e63aad3
authored
Feb 21, 2019
by
anonym
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve code readability.
parent
d72efd1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
config/chroot_local-includes/usr/local/sbin/tails-additional-software
...t_local-includes/usr/local/sbin/tails-additional-software
+10
-7
No files found.
config/chroot_local-includes/usr/local/sbin/tails-additional-software
View file @
2e63aad3
...
...
@@ -107,13 +107,16 @@ def _notify(title, body="", accept_label="", deny_label="",
urgent
=
""
try
:
completed_process
=
subprocess
.
run
([
"sudo"
,
"-u"
,
LIVE_USERNAME
,
cmd
,
title
,
body
,
accept_label
,
deny_label
,
documentation_target
,
urgent
],
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
universal_newlines
=
True
)
completed_process
=
subprocess
.
run
(
[
"sudo"
,
"-u"
,
LIVE_USERNAME
,
cmd
,
title
,
body
,
accept_label
,
deny_label
,
documentation_target
,
urgent
],
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
universal_newlines
=
True
)
if
completed_process
.
returncode
==
1
:
# sudo failed to execute the command
raise
OSError
(
completed_process
.
stderr
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment