@sunshine-star/dsh-access-pc 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.js +2 -0
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -23,6 +23,7 @@ const DEFAULT_WINDOW = '1440,900'
|
|
|
23
23
|
app.disableHardwareAcceleration()
|
|
24
24
|
if (process.platform === 'win32') app.setAppUserModelId('com.sunshine-star.dsh-access')
|
|
25
25
|
app.setName('dsh-access-pc')
|
|
26
|
+
app.commandLine.appendSwitch('class', 'dsh-access-pc')
|
|
26
27
|
|
|
27
28
|
/** 解析 --key value 形式的参数。 */
|
|
28
29
|
function parseArgs(argv) {
|
|
@@ -123,6 +124,7 @@ if (args.version) {
|
|
|
123
124
|
})
|
|
124
125
|
|
|
125
126
|
app.whenReady().then(() => {
|
|
127
|
+
if (process.platform === 'linux') app.setDesktopName('dsh-access-pc.desktop')
|
|
126
128
|
const dir = configDir()
|
|
127
129
|
const { cfg, file } = loadConfig(dir)
|
|
128
130
|
if (typeof args.hub === 'string') cfg.hub = args.hub
|