nwjs icon on the taskbar when you open new window
See original GitHub issueWhen you open new window in app with custom icon in the first seconds before onload we see:
in the last ver 0.21.4 old nwjs icon - not alright. Screenshot https://drive.google.com/open?id=0B7AH9NogZUyXRFBhZUZrUUhjejQ
in ver 0.20.1 custom icon - alright. Screenshot https://drive.google.com/open?id=0B7AH9NogZUyXcFZxbUgwS2ppeW8
index.html
<!DOCTYPE html>
<html>
<head>
<script>
//require('nw.gui').Window.get().showDevTools();
nw.Window.get().on('new-win-policy',function(frame,url,policy){
policy.ignore();
chrome.windows.create({url:url,type:"normal",focused:true});
require('nw.gui').Window.open(url,{frame:true,focus:true});
});
</script>
</head>
<body>
<a href="https://google.com/" target="_blank">https://google.com/</a>
</body>
</html>
package.json
{
"additional_trust_anchors": [],
"app_name": "hello",
"author": "hello",
"license": "hello",
"main": "index.html",
"name": "hello",
"node": true,
"nodejs": true,
"single-instance": true,
"webkit": {
"double_tap_to_zoom_enabled": false,
"java": true,
"page-cache": true,
"plugin": false
},
"window": {
"always_on_top": false,
"as_desktop": false,
"exe_icon": "customicon.png",
"frame": true,
"fullscreen": false,
"height": 600,
"icon": "customicon.png",
"id": "test-icon",
"kiosk": false,
"kiosk_emulation": false,
"position": "center",
"resizable": false,
"show": true,
"show_in_taskbar": true,
"title": "test-icon",
"toolbar": false,
"transparent": false,
"visible": true,
"visible_on_all_workspaces": false,
"width": 800
}
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:11 (3 by maintainers)
Top Results From Across the Web
NW.js Windows 10 Taskbar icon shows always default
I am using the latest (at the moment of writing) 0.51.1 version of nw.js and the taskbar icon always defaults doesn't matter what...
Read more >Developers - nwjs icon on the taskbar when you open a tray menu -
nwjs icon on the taskbar when you open a tray menu. ... You can use the code for create simple tray object and...
Read more >Window - NW.js Documentation - Read the Docs
Open a new window and load url in it. Note. You should wait for the Window's loaded event before interacting with any of...
Read more >Multiple nw.js process - Google Groups
Multiple icons on taskbar and multiple processes in task manager are different concepts. For icons on taskbar, it's one icon per window. If...
Read more >Newest 'taskbar' Questions - Stack Overflow
Why does my NWJS app open two icons in taskbar instead of showing shortcut icon open? When i click on the shortcut icon...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can reproduce this issue on Windows 7 with nwjs-sdk-v0.21.4. But it doesn’t occur on Windows 10/8. It doesn’t show
old nwjs icon
orcustom icon
, it just showsload icon
before the window is fully loaded.I also noticed this, shows nw js icon until the window is fully loaded.