electron: [Bug]: There is no way to get a custom WM_CLASS on electron app Windows

Preflight Checklist

Electron Version

17.1.0

What operating system are you using?

Other Linux

Operating System Version

OpenSuse or any other

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

How can I set a custom WM_CLASS attribute to windows opened with electron? For example, in chromium is possible specifying --class argument. When app get a WM_CLASS, KDE and other desktops can correctly assign a icon based on .desktop files installed.

google-chrome --app=https://example.org --class=crx_application

Is there any way to do this in electron? Maybe with command line or with javascript? Something like this could be good

const window = new BrowserWindow({wmClass: "crx_appplication"})

Actual Behavior

I don’t see any option related to this. Is there any way to get this?

Testcase Gist URL

No response

Additional Information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 10
  • Comments: 18 (3 by maintainers)

Most upvoted comments

Bump

El jue, 7 de sept de 2023, 8:48 p. m., issue-triage-bot[bot] < @.***> escribió:

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, “bump”), and we’ll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron https://www.electronjs.org/releases/stable or in the beta https://www.electronjs.org/releases/beta—please include it with your comment!

— Reply to this email directly, view it on GitHub https://github.com/electron/electron/issues/33155#issuecomment-1710966540, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADT6M7GF76NLF7JWYIL66BTXZJ2PJANCNFSM5QACMGEQ . You are receiving this because you authored the thread.Message ID: @.***>

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, “bump”), and we’ll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

bump

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, “bump”), and we’ll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

there you go