Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix open folder problem on linux
Browse files Browse the repository at this point in the history
fixes #273

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

Closes #274
  • Loading branch information
mojoaxel authored and yoshuawuyts committed Feb 27, 2017
1 parent 431d1d8 commit 744b244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions models/repos.js
Expand Up @@ -9,7 +9,7 @@ const minimist = require('minimist')
const toilet = require('toiletdb')
const assert = require('assert')
const mkdirp = require('mkdirp')
const open = require('open')
const shell = require('electron').shell
const path = require('path')
const ConfirmModal = require('../elements/confirm-modal')
const LinkModal = require('../elements/link-modal')
Expand Down Expand Up @@ -121,7 +121,8 @@ function createModel () {
// open the dat archive in the native filesystem explorer
function openDirectory (state, data, send, done) {
assert.ok(data.path, 'repos-model.openDirectory: data.path should exist')
open(data.path, done)
shell.openItem(data.path)
done()
}

// choose a directory and convert it to a dat archive
Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -27,7 +27,6 @@
"ms": "^0.7.2",
"multidat": "^3.0.0",
"nanomorph": "^2.1.3",
"open": "0.0.5",
"prettier-bytes": "^1.0.3",
"rimraf": "^2.5.4",
"run-waterfall": "^1.1.3",
Expand Down

0 comments on commit 744b244

Please sign in to comment.