diff --git a/config.js b/config.js index bcdea20..89f9946 100644 --- a/config.js +++ b/config.js @@ -2,7 +2,7 @@ 'use strict'; exports.id = 'com.add0n.native_client'; -exports.version = '0.2.8'; +exports.version = '0.2.9'; exports.ids = { chrome: [ diff --git a/linux/app/install.js b/linux/app/install.js index 4a52b8d..5de539e 100644 --- a/linux/app/install.js +++ b/linux/app/install.js @@ -4,7 +4,8 @@ var fs = require('fs'); var path = require('path'); -var share = process.argv.filter(a => a.startsWith('--custom-dir=')).map(a => a.split('=')[1])[0] || process.env.HOME; +var share = process.argv.filter(a => a.startsWith('--custom-dir=')).map(a => a.split('=')[1])[0] || + path.resolve(process.env.HOME, '.config'); if (share[0] === '~') { share = path.join(process.env.HOME, share.slice(1)); } diff --git a/linux/uninstall.sh b/linux/uninstall.sh index 3e1f14d..bdccd06 100755 --- a/linux/uninstall.sh +++ b/linux/uninstall.sh @@ -19,7 +19,7 @@ rm ~/.config/chromium/NativeMessagingHosts/${id}.json echo " .. Removing manifest file for Mozilla Firefox" rm ~/.mozilla/native-messaging-hosts/${id}.json echo " .. Removing executable" -rm -r ~/${id} +rm -r ~/.config/${id} echo echo ">>> Native Client is removed <<<". diff --git a/mac/app/install.js b/mac/app/install.js index b6e22b5..0710534 100644 --- a/mac/app/install.js +++ b/mac/app/install.js @@ -4,7 +4,8 @@ var fs = require('fs'); var path = require('path'); -var share = process.argv.filter(a => a.startsWith('--custom-dir=')).map(a => a.split('=')[1])[0] || process.env.HOME; +var share = process.argv.filter(a => a.startsWith('--custom-dir=')).map(a => a.split('=')[1])[0] || + path.resolve(process.env.HOME, '.config'); if (share[0] === '~') { share = path.join(process.env.HOME, share.slice(1)); } diff --git a/mac/uninstall.sh b/mac/uninstall.sh index c129607..db39f40 100755 --- a/mac/uninstall.sh +++ b/mac/uninstall.sh @@ -19,7 +19,7 @@ rm ~/Library/Application\ Support/Chromium/NativeMessagingHosts/${id}.json echo " .. Removing manifest file for Mozilla Firefox" rm ~/Library/Application\ Support/Mozilla/NativeMessagingHosts/${id}.json echo " .. Removing executable" -rm -r ~/${id} +rm -r ~/.config/${id} echo echo ">>> Native Client is removed <<<".