alibaba / alibaba/lightproxy

mac os 状态栏icon显示不正确

Open
#110 3 comments 0 reactions 0 assignees View on GitHub
🐛bug
Dominant language
TypeScript
Stars
3.2k
Forks
274
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. 打开软件,状态栏icon显示不正确

**Expected behavior**
期待显示正确的icon

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://user-images.githubusercontent.com/9301010/80326276-d1715d80-886a-11ea-95cf-e44410d7af98.png)

**Desktop (please complete the following information):**
- OS: mac os
- Version 10.14.6

**Log**
[2020-04-26 16:38:24.863] [info] Init extension rule-editor
[2020-04-26 16:38:24.923] [info] Init extension network
[2020-04-26 16:38:24.924] [info] Init extension phone-proxy
[2020-04-26 16:38:24.925] [info] Init extension setinng
[2020-04-26 16:38:24.926] [info] Init extension whistle
[2020-04-26 16:38:24.926] [info] init
[2020-04-26 16:38:25.182] [info] client {}
[2020-04-26 16:57:05.907] [info] Init extension rule-editor
[2020-04-26 16:57:05.941] [info] Init extension network
[2020-04-26 16:57:05.943] [info] Init extension phone-proxy
[2020-04-26 16:57:05.944] [info] Init extension setinng
[2020-04-26 16:57:05.945] [info] Init extension whistle
[2020-04-26 16:57:05.947] [info] init
[2020-04-26 16:57:06.256] [info] client {}
[2020-04-27 09:34:04.183] [info] Init extension rule-editor
[2020-04-27 09:34:04.212] [info] Init extension network
[2020-04-27 09:34:04.215] [info] Init extension phone-proxy
[2020-04-27 09:34:04.217] [info] Init extension setinng
[2020-04-27 09:34:04.218] [info] Init extension whistle
[2020-04-27 09:34:04.219] [info] init
[2020-04-27 09:34:04.560] [info] client {}

[2020-04-27 09:41:36.036] [info] try to set system proxy /Users/xxUser/Library/Application Support/LightProxy/proxy_conf_helper
[2020-04-27 09:41:46.883] [info] env undefined
[2020-04-27 09:41:48.760] [info] spawn module whistle-start
[2020-04-27 09:41:48.761] [info] boardcast port 53105
[2020-04-27 09:41:48.769] [info] Spwaned process /Applications/LightProxy.app/Contents/MacOS/LightProxy 51345
[2020-04-27 09:41:48.856] [info] [pid 51345]stdout:
const cp = require('child_process');
const originSpwan = cp.spawn;

// @ts-ignore
cp.spawn = function(cmd, argv, options) {
if (cmd === 'node' || cmd === 'node.exe') {
cmd = process.execPath;
options = options || {};
options.env = options.env || {};
options.env.ELECTRON_RUN_AS_NODE = '1';
}

return originSpwan.call(this, cmd, argv, options);
};
require(decodeURIComponent('%2FUsers%2FxxUser%2FLibrary%2FApplication%20Support%2FLightProxy%2Ffiles%2Fnode%2Fnode_modules%2Fwhistle-start%2Findex.js'));

[2020-04-27 09:41:48.938] [info] [pid 51345]stdout: pluginPaths [
'/usr/local/lib/node_modules/',
'/Users/xxUser/.nvm/versions/node/v6.1.0/lib/node_modules/',
'/Users/xxUser/.nvm/versions/node/v6.11.3/lib/node_modules/',
'/Users/xxUser/.nvm/versions/node/v8.11.1/lib/node_modules/',
'/Users/xxUser/.nvm/versions/node/v8.11.4/lib/node_modules/',
'/Users/xxUser/.nvm/versions/node/v9.11.2/lib/node_modules/',
'/Users/xxUser/Library/Application Support/LightProxy/files/node/node_modules'
]
Whistle get boardcast port 53105

[2020-04-27 09:41:48.944] [info] [pid 51345]stdout: use custom cert: /Users/xxUser/Library/Application Support/LightProxy/cert

[2020-04-27 09:41:48.948] [info] [pid 51345]stdout: Use port: 12888

[2020-04-27 09:41:49.409] [info] [pid 51345]stdout: Whistle get boardcast port 53105

[2020-04-27 09:41:49.566] [info] [pid 51345]stdout: Whistle for LightProxy start: http://127.0.0.1:12888
Whistle start for socks port:12889

[2020-04-27 09:41:49.581] [info] try to set system proxy /Users/xxUser/Library/Application Support/LightProxy/proxy_conf_helper
[2020-04-27 09:41:49.615] [info] try to set system proxy /Users/xxUser/Library/Application Support/LightProxy/proxy_conf_helper
[2020-04-27 09:41:49.726] [info] stdout pac proxy set to global

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Start by reproducing the status-bar icon problem in the Electron app on macOS 10.14.6 and locate the code responsible for the macOS status-bar icon; compare it with the attached screenshot. Done means the correct icon is displayed consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.