From 93ddb8d638c9e081fa72dec03013cc88137b56a6 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 21 Aug 2016 16:53:23 -0700 Subject: [PATCH] launch VLC fixes We can show video title on start now, since we're setting it correctly. Also, escape the title since it could contain spaces. --- src/main/external-player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/external-player.js b/src/main/external-player.js index 0f4648f3..46be8631 100644 --- a/src/main/external-player.js +++ b/src/main/external-player.js @@ -26,7 +26,7 @@ function spawn (path, url, title) { // Try to find and use VLC if external player is not specified vlcCommand(function (err, vlcPath) { if (err) return windows.main.dispatch('externalPlayerNotFound') - var args = ['--play-and-exit', '--video-on-top', '--no-video-title-show', '--quiet', `--meta-title=${title}`, url] + var args = ['--play-and-exit', '--video-on-top', '--quiet', `--meta-title=${JSON.stringify(title)}`, url] spawnExternal(vlcPath, args) }) }