https://github.com/tauri-apps/fix-path-env-rs
https://github.com/tauri-apps/fix-path-env-rs
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tauri-apps/fix-path-env-rs
- Owner: tauri-apps
- License: apache-2.0
- Created: 2022-03-31T16:18:48.000Z (over 3 years ago)
- Default Branch: dev
- Last Pushed: 2024-11-06T03:51:12.000Z (about 1 year ago)
- Last Synced: 2025-07-20T20:26:23.110Z (5 months ago)
- Language: Rust
- Size: 24.4 KB
- Stars: 60
- Watchers: 11
- Forks: 15
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fix-path-env-rs

A Rust crate to fix the `PATH` environment variable on macOS and Linux when running a GUI app.
GUI apps on macOS and Linux do not inherit the `$PATH` from your shell dotfiles (*.bashrc, .bash_profile, .zshrc, etc*).
## Installation
Please note, below in the dependencies you can also lock to a revision/tag in the `Cargo.toml`.
```toml
[dependencies]
fix-path-env = { git = "https://github.com/tauri-apps/fix-path-env-rs" }
```
## Usage
Call `fix_path_env::fix()` as early as possible in your `main` function in `main.rs` file
```rust
fn main() {
let _ = fix_path_env::fix(); // <---- Add this
}
```
# License
MIT / Apache-2.0