Skip to content

Commit

Permalink
Escape Paths in Linux Desktop File
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed Feb 18, 2016
1 parent 6d4b7ac commit 3693818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils.js
Expand Up @@ -632,7 +632,7 @@ var utils = {

_writeDesktopFile: function(cb) {
var powderPath = process.execPath.substr(0,process.execPath.lastIndexOf("/")+1);
fs.writeFile(gui.App.dataPath+'/powder.desktop', '[Desktop Entry]\nVersion=1.0\nName=Powder Player\nComment=Powder Player is a hybrid between a Torrent Client and a Player (torrent streaming)\nExec='+process.execPath+' %U\nPath='+powderPath+'\nIcon='+powderPath+'icon.png\nTerminal=false\nType=Application\nMimeType=application/x-bittorrent;x-scheme-handler/magnet;x-scheme-handler/pow;video/avi;video/msvideo;video/x-msvideo;video/mp4;video/x-matroska;video/mpeg;\n', cb);
fs.writeFile(gui.App.dataPath+'/powder.desktop', '[Desktop Entry]\nVersion=1.0\nName=Powder Player\nComment=Powder Player is a hybrid between a Torrent Client and a Player (torrent streaming)\nExec="'+process.execPath+'" %U\nPath="'+powderPath+'"\nIcon="'+powderPath+'icon.png"\nTerminal=false\nType=Application\nMimeType=application/x-bittorrent;x-scheme-handler/magnet;x-scheme-handler/pow;video/avi;video/msvideo;video/x-msvideo;video/mp4;video/x-matroska;video/mpeg;\n', cb);
},

torrent: function() {
Expand Down

0 comments on commit 3693818

Please sign in to comment.