ports/net-im/signal-desktop/files/patch-ts_util_os_osMain.ts
2025-05-28 09:07:44 +02:00

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 = {