Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
desktop client: revert nativeTitleBarVisible defaulting to true on Linux
Elian Doran6f81fb309950
diff --git a/packages/trilium-core/src/services/options_init.ts b/packages/trilium-core/src/services/options_init.tsindex f446cd0ba1..ad2b43de0a 100644--- a/packages/trilium-core/src/services/options_init.ts+++ b/packages/trilium-core/src/services/options_init.ts@@ -6,7 +6,7 @@ import dateUtils from "./utils/date.js";import keyboardActions from "./keyboard_actions.js";import { getLog } from "./log.js";import optionService from "./options.js";-import { isLinux, isWindows, randomSecureToken } from "./utils/index.js";+import { isWindows, randomSecureToken } from "./utils/index.js";export function initDocumentOptions() {optionService.createOption("documentId", randomSecureToken(16), false);@@ -180,9 +180,7 @@ const defaultOptions: DefaultOption[] = [{ name: "rightPaneWidth", value: "25", isSynced: false },{ name: "rightPaneVisible", value: "true", isSynced: false },{ name: "rightPaneCollapsedItems", value: "[]", isSynced: false },- // On Linux a native title bar integrates better with the rest of the system, so default it on there.- // This only applies to fresh installs — existing databases already have the option set and are left untouched.- { name: "nativeTitleBarVisible", value: () => isLinux() ? "true" : "false", isSynced: false },+ { name: "nativeTitleBarVisible", value: "false", isSynced: false },{ name: "eraseEntitiesAfterTimeInSeconds", value: "604800", isSynced: true }, // default is 7 days{ name: "eraseEntitiesAfterTimeScale", value: "86400", isSynced: true }, // default 86400 seconds = Day{ name: "hideArchivedNotes_main", value: "false", isSynced: false },