summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-08-31 12:06:17 +0200
committeranonym <anonym@riseup.net>2016-08-31 12:06:17 +0200
commit10477fbf2ec0fa5329d338f9e2499a7491197cb6 (patch)
tree8fa415a576c629c08cea47132a1fc25aa797eae9
parentef04b11a2346f1fc54ff090c98c4fee0564076c9 (diff)
Enable Dogtail for applications run by non-{root,LIVE_USER} users.test/11755-dogtail-for-all-users
Will-fix: #11755
-rw-r--r--features/step_definitions/common_steps.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index 6d8d738..ca4a235 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -287,6 +287,20 @@ Given /^the computer (re)?boots Tails$/ do |reboot|
$vm.wait_until_remote_shell_is_up
activate_filesystem_shares
step 'I configure Tails to use a simulated Tor network'
+ # In order to get Dogtail to see applications run by
+ # non-{root,LIVE_USER} we open up the at-spi2 bus so any user has
+ # full access to it.
+ $vm.execute_successfully('mkdir -p /etc/at-spi2')
+ if not $vm.file_exist?('/etc/at-spi2/accessibility.conf')
+ $vm.execute_successfully(
+ 'cp /usr/share/defaults/at-spi2/accessibility.conf ' +
+ ' /etc/at-spi2/accessibility.conf'
+ )
+ end
+ $vm.execute_successfully(
+ "sed -i 's@<allow user=\"root\"\/>@<allow user=\"*\"/>' " +
+ " /etc/at-spi2/accessibility.conf"
+ )
end
Given /^I log in to a new session(?: in )?(|German)$/ do |lang|