Nw.js: nwjs icon on the taskbar when you open new window

Created on 1 Apr 2017  路  9Comments  路  Source: nwjs/nw.js

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
    }
}
P3 bug triaged

All 9 comments

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

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.

Is there any news of fix?

When will this bug be fixed?

Aloha, What news?

Still broken on armv7l with 0.27.6.

Can anyone check version 0.35.1 on the supported archs?

On 0.42.5 you see a red icon on the Windows taskbar even if you set the "exe_icon" and "icon" in the package.json.

on 0.42.4 I am seeing red icon on windows taskbar, even tho I have set "icon" in package.json

Please try the latest version.

Was this page helpful?
0 / 5 - 0 ratings