diff --git a/README.md b/README.md index 6a7921a..f203c20 100644 --- a/README.md +++ b/README.md @@ -36,13 +36,13 @@ Other packages can be installed from you package manager, either by clicking on ## Usage -| Option | Description | -| ---------------------- | -------------------------------------------------------------------------------------- | -| `--start-in-tray` | Start the app in the tray (see [patch](./patches/01-start-hidden-in-tray.patch)) | -| `--disable-systray` | Quit the app when the window is closed (see [patch](./patches/03-quit.patch)) | -| `--hide-kernel` | Hide the exact kernel version (see [patch](./patches/05-remove-os-information.patch)) | -| `--disable-features` | Disable some features (see [patch](./patches/06-better-management-of-MPRIS.patch)) | -| `--enable-discord-rpc` | Enable Discord RPC integration (see [patch](./patches/09-discord-rich-presence.patch)) | +| Option | Description | +| ---------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `--start-in-tray` | Start the app in the tray (see [patch](./patches/01-start-hidden-in-tray.patch)) | +| `--disable-systray` | Quit the app when the window is closed (see [patch](./patches/03-quit.patch)) | +| `--keep-kernel` | Use the exact kernel version (see [patch](./patches/05-remove-os-information.patch))
_This feature impacts privacy._ | +| `--disable-features` | Disable some features (see [patch](./patches/06-better-management-of-MPRIS.patch)) | +| `--enable-discord-rpc` | Enable Discord RPC integration (see [patch](./patches/09-discord-rich-presence.patch)) | | Environment variable | Options | Description | | -------------------- | -------------------------------------------------- | ---------------------------------------------------------------------------------- | diff --git a/patches/05-remove-os-information.patch b/patches/05-remove-os-information.patch index f779578..3e12852 100644 --- a/patches/05-remove-os-information.patch +++ b/patches/05-remove-os-information.patch @@ -1,7 +1,7 @@ From 9250fb3bf514256f68ad844b53e7345b2efc4b37 Mon Sep 17 00:00:00 2001 From: josselinonduty Date: Mon, 21 Apr 2025 01:08:23 +0900 -Subject: [PATCH] fix: ensure os release is valid; add cli argument to hide +Subject: [PATCH] fix: ensure os release is valid; add cli argument to use exact kernel version Original patch: Dorian Stoll @@ -33,7 +33,7 @@ index a667632..e03556c 100644 + var __module_os = require("os"); + const release = __module_os.release(); + __module_os.release = () => { -+ if (process.argv.some((arg) => arg === "--hide-kernel")) ++ if (!process.argv.some((arg) => arg === "--keep-kernel")) + return "6.1.0"; + + const matcher = /(\d+\.\d+\.\d+)\.*/; @@ -56,7 +56,7 @@ index 4029c6d..f625122 100644 + var __module_os = require("os"); + const release = __module_os.release(); + __module_os.release = () => { -+ if (process.argv.some((arg) => arg === "--hide-kernel")) ++ if (!process.argv.some((arg) => arg === "--keep-kernel")) + return "6.1.0"; + + const matcher = /(\d+\.\d+\.\d+)\.*/; @@ -79,7 +79,7 @@ index ca6c307..24b119f 100644 + var __module_os = require("os"); + const release = __module_os.release(); + __module_os.release = () => { -+ if (process.argv.some((arg) => arg === "--hide-kernel")) ++ if (!process.argv.some((arg) => arg === "--keep-kernel")) + return "6.1.0"; + + const matcher = /(\d+\.\d+\.\d+)\.*/; @@ -102,7 +102,7 @@ index 5414c90..4f3c6a3 100644 + var __module_os = require("os"); + const release = __module_os.release(); + __module_os.release = () => { -+ if (process.argv.some((arg) => arg === "--hide-kernel")) ++ if (!process.argv.some((arg) => arg === "--keep-kernel")) + return "6.1.0"; + + const matcher = /(\d+\.\d+\.\d+)\.*/;