diff --git a/uninstall.js b/uninstall.js index 0203d7e5d..be6ba5d57 100644 --- a/uninstall.js +++ b/uninstall.js @@ -53,5 +53,19 @@ if (os.platform() == "win32") { // Mac Shortcuts } else if (os.platform() == "darwin") { - // Uninstall Mac shortcuts here once they have been added. -} \ No newline at end of file + // Remove .desktop files + let command = `rm ~/Desktop/${name}.command` + exec( command, + function ( error, stdout ){ + if (error) { + console.log(''); + console.log("There was an error uninstalling shortcuts: "); + console.log(''); + console.log( error ); + return; + } else { + console.log(''); + console.log("Shortcuts have been uninstalled successfully."); + } + }); +}