Skip to content

Commit 2754f25

Browse files
author
Stuart Nelson
authored
fix: default Open WebUI at Launch to true (#1757)
1 parent 3c69d4c commit 2754f25

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/webui/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const os = require('os')
77
const openExternal = require('./open-external')
88
const logger = require('../common/logger')
99
const store = require('../common/store')
10-
const { IS_MAC, IS_WIN } = require('../common/consts')
1110
const dock = require('../utils/dock')
1211
const { VERSION, ELECTRON_VERSION } = require('../common/consts')
1312
const createToggler = require('../utils/create-toggler')
@@ -77,11 +76,12 @@ const apiOrigin = (apiMultiaddr) => {
7776

7877
module.exports = async function (ctx) {
7978
if (store.get(CONFIG_KEY, null) === null) {
80-
// First time running this. If it's not macOS, nor Windows,
81-
// enable opening ipfs-webui at app launch.
82-
// This is the best we can do to mitigate Tray issues on Linux:
83-
// https://github.com/ipfs-shipyard/ipfs-desktop/issues/1153
84-
store.set(CONFIG_KEY, !IS_MAC && !IS_WIN)
79+
// First time running this. Enable opening ipfs-webui at app launch.
80+
// This accounts for users on OSes who may have extensions for
81+
// decluttering system menus/trays, and thus have no initial "way in" to
82+
// Desktop upon install:
83+
// https://github.com/ipfs-shipyard/ipfs-desktop/issues/1741
84+
store.set(CONFIG_KEY, true)
8585
}
8686

8787
createToggler(CONFIG_KEY, async ({ newValue }) => {

0 commit comments

Comments
 (0)