Remote shell cannot run X commands in the Welcome Screen
The remote shell uses export_gnome_env()
, which only works for the amnesia
user (it's always been the case).
So far it does not really break anything, it just creates lots of noisy error output in the Journal when running the test suite. However, it prevents me from disabling DPMS in !873 (closed) so we should try to fix it there.
00:03:38.267512146: Remote shell: calling as Debian-gdm: DISPLAY=:0 xset -dpms
00:03:38.325358556: Remote shell: call returned: [1, "", "No protocol specified\nxset: unable to open display \":0\"\n"]
When I start Tails with network unplugged and I login # features/step_definitions/common_steps.rb:159
Command failed: DISPLAY=:0 xset -dpms
error code: 1
stderr: No protocol specified
xset: unable to open display ":0"
.
<false> is not true. (ExecutionFailedInVM)
./features/support/helpers/vm_helper.rb:448:in `rescue in execute_successfully'
./features/support/helpers/vm_helper.rb:445:in `execute_successfully'
./features/step_definitions/common_steps.rb:363:in `/^the computer (?:re)?boots Tails( with genuine APT sources)?$/'
./features/step_definitions/common_steps.rb:170:in `/^I start Tails( from DVD)?( with network unplugged)?( and genuine APT sources)?( and I login)?$/'
features/untrusted_partitions.feature:14:in `When I start Tails with network unplugged and I login'
In this specific case I've set $DISPLAY
manually (which I should not need to) but I think I'm missing $XAUTHORITY
for xset
to work.
Edited by intrigeri