From 024cfe8bbb870df4fe5f2cd22887cf366d2452ed Mon Sep 17 00:00:00 2001 From: confused-Techie Date: Sat, 23 Jul 2022 17:25:45 -0700 Subject: [PATCH 1/2] Adding branding info to global API --- package.json | 5 +++++ src/atom-environment.js | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/package.json b/package.json index 19adcf26f..f35618ff4 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,11 @@ "productName": "Atom", "version": "1.63.0-dev", "description": "A hackable text editor for the 21st Century.", + "branding": { + "id": "pulsar", + "fullName": "Pulsar Edit", + "properName": "Pulsar" + }, "main": "./src/main-process/main.js", "repository": { "type": "git", diff --git a/src/atom-environment.js b/src/atom-environment.js index ac7196437..61ebb3121 100644 --- a/src/atom-environment.js +++ b/src/atom-environment.js @@ -46,6 +46,7 @@ const TextEditorRegistry = require('./text-editor-registry'); const AutoUpdateManager = require('./auto-update-manager'); const StartupTime = require('./startup-time'); const getReleaseChannel = require('./get-release-channel'); +const packagejson = require("../package.json"); const stat = util.promisify(fs.stat); @@ -219,6 +220,12 @@ class AtomEnvironment { commands: this.commands, stateStore: this.stateStore }); + + this.branding = { + id: packagejson.branding.id, + fullName: packagejson.branding.fullName, + properName: packagejson.branding.properName + }; // Keep instances of HistoryManager in sync this.disposables.add( From 871d3752701f0dd31f48e975e6434881f3d5fb49 Mon Sep 17 00:00:00 2001 From: confused-Techie Date: Sun, 24 Jul 2022 18:26:07 -0700 Subject: [PATCH 2/2] Removed 'Pulsar Edit' based off poll results --- package.json | 1 - src/atom-environment.js | 1 - 2 files changed, 2 deletions(-) diff --git a/package.json b/package.json index f35618ff4..daeef928c 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,6 @@ "description": "A hackable text editor for the 21st Century.", "branding": { "id": "pulsar", - "fullName": "Pulsar Edit", "properName": "Pulsar" }, "main": "./src/main-process/main.js", diff --git a/src/atom-environment.js b/src/atom-environment.js index 61ebb3121..207355e73 100644 --- a/src/atom-environment.js +++ b/src/atom-environment.js @@ -223,7 +223,6 @@ class AtomEnvironment { this.branding = { id: packagejson.branding.id, - fullName: packagejson.branding.fullName, properName: packagejson.branding.properName };