Window show/hide and multiple desktops on mac OS


#1

By default if you hide a window on some desktop and then show it again, it will appear on the same desktop it was hidden. If you’re currently on a different desktop and .show() is triggered (e.g. by global shortcut), your screen will be scrolled to a desktop containing electron window. This behavior seems valid, however there may be cases when you want to change that (I have one).
So, is there a way to interact with desktops API on Mac OS (Linux)? What would be a good workaround to show (unhide) window always on current desktop?