Permalink
Browse files

fixes #67 - open not working in ubuntu

  • Loading branch information...
1 parent 636da3b commit 1177462c651af8af894bca63bc5b5fc1b3171bd9 @ritch ritch committed Sep 26, 2012
Showing with 3 additions and 16 deletions.
  1. +1 −15 lib/util/open.js
  2. +2 −1 package.json
View
@@ -1,15 +1 @@
-var sh = require('shelljs')
- , debug = require('debug')('open');
-
-module.exports = function(url) {
- var command = 'open';
-
- url = url || '';
-
- if (process.platform === 'win32') {
- command = 'start';
- }
- command += ' ' + url;
- debug(command);
- sh.exec(command, {async: true});
-};
+module.exports = require('opener');
View
@@ -34,7 +34,8 @@
"doh": ">=0.0.4",
"step": ">=0.0.5",
"forever-monitor": "1.1.x",
- "keypress": "~0.1.0"
+ "keypress": "~0.1.0",
+ "opener": "~1.3.0"
},
"devDependencies": {
"mocha": "*",

0 comments on commit 1177462

Please sign in to comment.