electron-about-window icon indicating copy to clipboard operation
electron-about-window copied to clipboard

About window on windows seems pretty limited

Open yafp opened this issue 4 years ago • 5 comments

... or i am messing it up.

I am using about-window 1.13.4 and the about window on linux is as i am expecting it. See screenshot:

media_dupes_on_linux2020-06-23 21-16-08

The same build on windows shows the following about window:

84192162-e2340680-aa99-11ea-953c-e8c46ab95f04

Any idea why:

  • the image is missing on windows
  • the version string is wrong?
  • almost anything else is missing as well :)

yafp avatar Jun 23 '20 19:06 yafp

Please share your source code. You probably made a minor mistake, since it's working fine for me on windows.

Mavahu avatar Jul 14 '20 15:07 Mavahu

@Mavahu

The related project is here: https://github.com/yafp/media-dupes The main js file here: https://github.com/yafp/media-dupes/blob/master/main.js

yafp avatar Jul 26 '20 21:07 yafp

I'm seeing the same issue.

const openAboutWindow = require('about-window').default;

// later on
        openAboutWindow({
          icon_path: path.join(__dirname, '..', 'icon.png'),
          copyright: 'Copyright (c) 2020 Stoplight, Inc',
        });

Linux: image

Windows: image

billiegoose avatar Jan 26 '21 16:01 billiegoose

Hang on, I'm gonna test to see if it's a / vs \ thing.

Update: nope, that's not it. Not sure what problem is.

billiegoose avatar Jan 26 '21 16:01 billiegoose

Alright, figured it out. It is an error in usage: when declaring the menu item for the About dialog, be sure to not specify role: 'about'.

image

It appears in previous versions of Electron, the about role was undefined in Windows and now it is, or the click handler overrode the role or something. I guess Linux has never had it defined so that the presence of the role property there has never caused an issue.

Anyway. Now I get a lovely dialog on Windows. image

billiegoose avatar Jan 26 '21 18:01 billiegoose