@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.
Files changed (2) hide show
  1. package/main.js +2 -0
  2. 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunshine-star/dsh-access-pc",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "DSH Access PC client (Electron shell around the hub console)",
5
5
  "main": "main.js",
6
6
  "bin": {