Skip to content

Commit f2ffcdf

Browse files
committed
Fixed Path to VLC
1 parent f164715 commit f2ffcdf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/engine.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ function engage(targetHistory) {
179179
fs.exists(gui.App.dataPath+'\\vlc_playlist.m3u', function(exists) {
180180
if (exists) fs.unlink(gui.App.dataPath+'\\vlc_playlist.m3u', function() {
181181
fs.writeFile(gui.App.dataPath+'\\vlc_playlist.m3u', newM3U, function() {
182-
require('child_process').exec(require('path').dirname(process.execPath)+'\\plugins\\vlc.exe "'+gui.App.dataPath+'\\vlc_playlist.m3u"');
182+
require('child_process').exec('"'+require('path').dirname(process.execPath)+'\\plugins\\vlc.exe" "'+gui.App.dataPath+'\\vlc_playlist.m3u"');
183183
});
184184
});
185185
else fs.writeFile(gui.App.dataPath+'\\vlc_playlist.m3u', newM3U, function() {
186-
require('child_process').exec(require('path').dirname(process.execPath)+'\\plugins\\vlc.exe "'+gui.App.dataPath+'\\vlc_playlist.m3u"');
186+
require('child_process').exec('"'+require('path').dirname(process.execPath)+'\\plugins\\vlc.exe" "'+gui.App.dataPath+'\\vlc_playlist.m3u"');
187187
});
188188
});
189189
}

0 commit comments

Comments
 (0)