Skip to content

Commit

Permalink
Fixed Path to VLC
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed Jul 6, 2015
1 parent f164715 commit f2ffcdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ function engage(targetHistory) {
fs.exists(gui.App.dataPath+'\\vlc_playlist.m3u', function(exists) {
if (exists) fs.unlink(gui.App.dataPath+'\\vlc_playlist.m3u', function() {
fs.writeFile(gui.App.dataPath+'\\vlc_playlist.m3u', newM3U, function() {
require('child_process').exec(require('path').dirname(process.execPath)+'\\plugins\\vlc.exe "'+gui.App.dataPath+'\\vlc_playlist.m3u"');
require('child_process').exec('"'+require('path').dirname(process.execPath)+'\\plugins\\vlc.exe" "'+gui.App.dataPath+'\\vlc_playlist.m3u"');
});
});
else fs.writeFile(gui.App.dataPath+'\\vlc_playlist.m3u', newM3U, function() {
require('child_process').exec(require('path').dirname(process.execPath)+'\\plugins\\vlc.exe "'+gui.App.dataPath+'\\vlc_playlist.m3u"');
require('child_process').exec('"'+require('path').dirname(process.execPath)+'\\plugins\\vlc.exe" "'+gui.App.dataPath+'\\vlc_playlist.m3u"');
});
});
}
Expand Down

0 comments on commit f2ffcdf

Please sign in to comment.