File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const path: typeof import("path") = require("node:path");
33
44// Should be {home}/.winboat
55export const WINBOAT_DIR = path . join ( os . homedir ( ) , ".winboat" ) ;
6+ export const DEFAULT_HOMEBREW_DIR = path . join ( os . homedir ( ) , "../linuxbrew/.linuxbrew/bin" ) ;
67
78export const WINDOWS_VERSIONS = {
89 "11" : "Windows 11 Pro" ,
Original file line number Diff line number Diff line change @@ -4,8 +4,19 @@ import { router } from "./router";
44import { MotionPlugin } from "@vueuse/motion" ;
55import "./index.css" ;
66import { autoScroll } from "./directives/autoscroll" ;
7+ import { DEFAULT_HOMEBREW_DIR } from "./lib/constants" ;
78import VueApexCharts from "vue3-apexcharts" ;
89
10+ const process : typeof import ( "process" ) = require ( "node:process" ) ;
11+
12+ /**
13+ * @note A big chunk of our userbase uses WinBoat under an immutable distro through GearLever.
14+ * In case it's the flatpak version of GearLever, PATH, and some other environment variable will get stripped by default.
15+ * We include the default homebrew bin directiory for exactly this reason.
16+ * It's not WinBoat's responsibility if the PATH envvar is incomplete, but in this case it affects a lot of users.
17+ */
18+ process . env . PATH && ( process . env . PATH += `:${ DEFAULT_HOMEBREW_DIR } ` ) ;
19+
920createApp ( App )
1021 . directive ( "auto-scroll" , autoScroll )
1122 . use ( router )
You can’t perform that action at this time.
0 commit comments