question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nwjs icon on the taskbar when you open new window

See original GitHub issue

When 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:open
  • Created 6 years ago
  • Reactions:1
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Christywlcommented, Apr 5, 2017

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 or custom icon, it just shows load icon before the window is fully loaded.

1reaction
GeekHubercommented, Apr 4, 2017

I also noticed this, shows nw js icon until the window is fully loaded.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found