Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
fix: correct electron-sudo options
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed Jan 24, 2016
1 parent e3c0cb0 commit 645eb4a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Hozz",
"version": "0.1.0",
"version": "0.1.1",
"description": "A better way to manage your hosts.",
"main": "browser.js",
"scripts": {
Expand All @@ -16,7 +16,7 @@
"all-platform"
],
"author": "PPOffice",
"license": "BSD",
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/ppoffice/Hozz/issues"
},
Expand Down
7 changes: 4 additions & 3 deletions src/js/backend/permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import { APP_NAME } from '../constants';

const SUDO_OPTION = {
name: APP_NAME,
icns: path.join(__dirname, './assets/images/icon.icns'),
icns: path.join(global.__dirname, './assets/images/icon.icns'),
process: {
options: {
env: { 'LANG': 'en_US.UTF-8' }
}
},
on: () => {}
}
};

Expand All @@ -32,7 +33,7 @@ const enableFullAccess = () => {
break;
case 'darwin':
case 'linux':
command = 'chmod 666 /etc/hosts';
command = '/bin/chmod 644 /etc/hosts';
break;
default:
command = '';
Expand Down
2 changes: 1 addition & 1 deletion src/js/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
import keymirror from 'keymirror';

export const APP_NAME = 'Hozz';
export const APP_VERSION = '0.1.0';
export const APP_VERSION = '0.1.1';
export const APP_AUTHER = 'PPOffice';
export const APP_HOMEPAGE = 'https://ppoffice.github.io/Hozz';
export const APP_RELEASES_URL = `https://api.github.com/repos/ppoffice/${ APP_NAME }/releases`;
Expand Down

1 comment on commit 645eb4a

@ppoffice
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#8

Please sign in to comment.