LONDON — The Edinburgh Film Festival will open June 17 with the world premiere of Robert Carlyle’s feature film directorial debut, “The Legend of Barney Thomson.” Carlyle stars in the Glasgow-set thriller alongside Emma Thompson and Ray Winstone. Also appearing in the film are Tom Courtenay, Ashley Jensen and Martin Compston.