Skip to content
This repository was archived by the owner on Apr 9, 2026. It is now read-only.

Commit 88e3ed3

Browse files
committed
PR #15 Allow the Atom app name to be configurable
Make Atom app name configurable to make it work with Atom Beta.
1 parent ead6107 commit 88e3ed3

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

info.plist

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,15 +338,14 @@ Simply type atom and press space to list all projects. Optionally type a search
338338
</dict>
339339
<key>variables</key>
340340
<dict>
341-
<key>nodePath</key>
342-
<string>/usr/local/bin/node</string>
341+
<key>atomApp</key>
342+
<string>Atom</string>
343343
<key>terminalApp</key>
344344
<string>Terminal</string>
345345
</dict>
346346
<key>variablesdontexport</key>
347347
<array>
348348
<string>terminalApp</string>
349-
<string>nodePath</string>
350349
</array>
351350
<key>version</key>
352351
<string>2.3.2</string>

project.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

project.js.flow

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ const fs = require('fs');
44
const octicons = require('octicons');
55
const path = require('path');
66

7-
const atomAppName = process.env.atomAppName || 'Atom';
7+
const atomApp = process.env.atomApp || 'Atom';
8+
const terminalApp = process.env.terminalApp || 'Terminal';
89

910
/**
1011
* Atom Project
@@ -155,28 +156,28 @@ class Project {
155156
icon: {
156157
path: this._icon(project)
157158
},
158-
arg: this._openArgument(project, atomAppName),
159+
arg: this._openArgument(project, atomApp),
159160
valid: project.paths && project.paths.length > 0,
160161
mods: {
161162
alt: {
162163
valid: true,
163164
subtitle: 'Open project path(s) in terminal',
164-
arg: this._openArgument(project, process.env.terminalApp || 'Terminal')
165+
arg: this._openArgument(project, terminalApp)
165166
},
166167
cmd: {
167168
valid: true,
168169
subtitle: 'Open in new window',
169-
arg: this._openArgument(project, atomAppName, ['-n'])
170+
arg: this._openArgument(project, atomApp, ['-n'])
170171
},
171172
ctrl: {
172173
valid: true,
173174
subtitle: 'Open in development mode',
174-
arg: this._openArgument(project, atomAppName, ['-d'])
175+
arg: this._openArgument(project, atomApp, ['-d'])
175176
},
176177
fn: {
177178
valid: true,
178179
subtitle: 'Append project path(s) to last open window',
179-
arg: this._openArgument(project, atomAppName, ['-a'])
180+
arg: this._openArgument(project, atomApp, ['-a'])
180181
},
181182
shift: {
182183
valid: true,

0 commit comments

Comments
 (0)