mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
20 lines
623 B
TypeScript
20 lines
623 B
TypeScript
--- ts/util/os/osMain.ts.orig 2025-05-23 14:04:11 UTC
|
|
+++ ts/util/os/osMain.ts
|
|
@@ -6,7 +6,7 @@ function getLinuxName(): string | undefined {
|
|
import { getOSFunctions } from './shared';
|
|
|
|
function getLinuxName(): string | undefined {
|
|
- if (os.platform() !== 'linux') {
|
|
+ if (os.platform() !== 'freebsd') {
|
|
return undefined;
|
|
}
|
|
|
|
@@ -24,7 +24,7 @@ function isLinuxUsingKDE(): boolean {
|
|
}
|
|
|
|
function isLinuxUsingKDE(): boolean {
|
|
- return os.platform() === 'linux' && process.env.XDG_CURRENT_DESKTOP === 'KDE';
|
|
+ return os.platform() === 'freebsd' && process.env.XDG_CURRENT_DESKTOP === 'KDE';
|
|
}
|
|
|
|
const OS = {
|