Skip to content

setHiddenInMissionControl not working on Linux #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bhaumikmaan opened this issue Apr 4, 2025 · 4 comments
Closed

setHiddenInMissionControl not working on Linux #1

bhaumikmaan opened this issue Apr 4, 2025 · 4 comments

Comments

@bhaumikmaan
Copy link
Contributor

bhaumikmaan commented Apr 4, 2025

Issue

Found this issue when working on the system on a Linux device. In the electron/WindowHelper.js file, within the createWindow() method, the following line is causing a runtime error on Linux:

this.mainWindow.setHiddenInMissionControl(true);

Error Found:

TypeError: this.mainWindow.setHiddenInMissionControl is not a function

Looking into it a bit, I found out this method is macOS-only, according to the Electron documentation.

Proposed Fix

  • Update the code to only call macOS-specific APIs conditionally, and make a default method otherwise for other OS.
  • Linux-specific improvements (optional): Optimization of stealth configs for Linux specifically

Request:

  • Apply the conditional check for macOS-only APIs to avoid platform-specific crashes.
  • Document these platform-specific behaviors in the code.

Let me know if you'd like me to open a PR for this directly!

@Prat011
Copy link
Owner

Prat011 commented Apr 4, 2025

Looking into this

@bhaumikmaan
Copy link
Contributor Author

I can open a PR to do it if you are unable/unavailable to do it

@Prat011
Copy link
Owner

Prat011 commented Apr 7, 2025

Sure! go ahead, i'll will review and merge it

@bhaumikmaan
Copy link
Contributor Author

Here you go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants