From 72b92fc3e5debeb0b144fb05117e2cefc7d4e804 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 17 Sep 2014 08:54:16 -0700 Subject: [PATCH] Only add command on platforms where it can be run Closes #3561 --- src/workspace-view.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/workspace-view.coffee b/src/workspace-view.coffee index 458d6d311..f4fc3b893 100644 --- a/src/workspace-view.coffee +++ b/src/workspace-view.coffee @@ -136,7 +136,8 @@ class WorkspaceView extends View @command 'application:open-your-stylesheet', -> ipc.send('command', 'application:open-your-stylesheet') @command 'application:open-license', => @model.openLicense() - @command 'window:install-shell-commands', => @installShellCommands() + if process.platform is 'darwin' + @command 'window:install-shell-commands', => @installShellCommands() @command 'window:run-package-specs', -> ipc.send('run-package-specs', path.join(atom.project.getPath(), 'spec')) @command 'window:increase-font-size', => @increaseFontSize()