Skip to content

[bug] app.restart() does not retain the current command line arguments #4760

@horochx

Description

@horochx

Describe the bug

I am managing updates manually and I noticed that when I call app.restart to do a restart, the command line arguments are missing.

Reproduction

No response

Expected behavior

Retain current command line parameters when restarting.

Platform and versions

Environment
  › OS: Mac OS 12.4.0 X64
  › Node.js: 14.19.3
  › npm: 6.14.17
  › pnpm: 7.4.0
  › yarn: 1.22.15
  › rustup: 1.24.3
  › rustc: 1.61.0
  › cargo: 1.61.0
  › Rust toolchain: stable-aarch64-apple-darwin 

Packages
  › @tauri-apps/cli [NPM]: 1.0.0 (outdated, latest: 1.0.5)
  › @tauri-apps/api [NPM]: 1.0.1 (outdated, latest: 1.0.2)
  › tauri [RUST]: 1.0.3,
  › tauri-build [RUST]: 1.0.3,
  › tao [RUST]: 0.12.1,
  › wry [RUST]: 0.19.0,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../build
  › devPath: http://localhost:3000/
  › framework: React

App directory structure
  ├─ node_modules
  ├─ public
  ├─ scripts
  ├─ src-tauri
  ├─ build
  ├─ .git
  ├─ .idea
  └─ src

Stack trace

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions