mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 05:20:01 +00:00
fixed CLI paths on Windows (fixes #90)
This commit is contained in:
parent
c41efbd62b
commit
23c7acde51
@ -35,7 +35,7 @@ export class ButtonProvider extends ToolbarButtonProvider {
|
||||
if (!electron.remote.process.env.DEV) {
|
||||
setImmediate(async () => {
|
||||
let argv: string[] = electron.remote.process.argv
|
||||
for (let arg of argv.slice(1)) {
|
||||
for (let arg of argv.slice(1).concat([electron.remote.process.argv0])) {
|
||||
if (await fs.exists(arg)) {
|
||||
if ((await fs.stat(arg)).isDirectory()) {
|
||||
this.openNewTab(arg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user