Skip to content

Commit

Permalink
Fixed bug JENKINS-22105. Quotes around the xauthority filename broke …
Browse files Browse the repository at this point in the history
…xauth completely. This will reintroduce the spaces in job names bug, but that should be fixed in vncserver.
  • Loading branch information
levsa committed Mar 16, 2014
1 parent bb90910 commit fde9029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/xvnc/Xvnc.java
Expand Up @@ -93,7 +93,7 @@ private Environment doSetUp(AbstractBuild build, final Launcher launcher, final
final FilePath xauthority = build.getWorkspace().createTempFile(".Xauthority-", "");
final Map<String,String> xauthorityEnv = new HashMap<String, String>();
if (useXauthority) {
xauthorityEnv.put("XAUTHORITY", "\"" + xauthority.getRemote() + "\"");
xauthorityEnv.put("XAUTHORITY", xauthority.getRemote());
}

final Proc proc = launcher.launch().cmds(cmds).envs(xauthorityEnv).stdout(logger).pwd(build.getWorkspace()).start();
Expand Down

0 comments on commit fde9029

Please sign in to comment.