01-21-2014, 09:46 PM
Is it just me or did AMD drop the COMPUTE environment variable overriding DISPLAY in 13.12? I found it very handy for ssh -X sessions but it doesn't work anymore.
Fwiw it could be worked around within oclHashcat, eg. like this:
I was going to add a request on trac but I thought I'd ask for others opinions/insights first.
Fwiw it could be worked around within oclHashcat, eg. like this:
Code:
char *env;
// Prefer COMPUTE over DISPLAY and lacking both, assume :0
env = getenv("COMPUTE");
if (env && *env)
setenv("DISPLAY", env, 1);
else {
env = getenv("DISPLAY");
if (!env || !*env)
setenv("DISPLAY", ":0", 1);
}
I was going to add a request on trac but I thought I'd ask for others opinions/insights first.