-
Notifications
You must be signed in to change notification settings - Fork 113
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
isHidden argument does not hide the app #65
Comments
Hmm I'm not sure. It works in a simple app for me here. I've just published |
I doubt it will fix the problem since it successfully launches the app on startup only the hidden mode doesn't work. Let me test it on |
Please have you been able to get it to work now, I'm also facing similar issue using a windows 10 device. |
I am using 5.0.5 and just tested if the hidden option is working for me on windows 10. The registry key looks like that:
|
Hi! I am facing the same issue for an electron app. Did any of you guys found a solution or workaround? I am using: Windows 10 Build 19043, My code is straightforward and taken from the documentation: // Calling autolaunch from main process
const autoLaunch = new AutoLaunch({
name: 'My App',
path: app.getPath('exe'),
isHidden: true,
})
autoLaunch.isEnabled().then((isEnabled) => {
if (!isEnabled) autoLaunch.enable()
}) The registry in I don't know where the flags are defined so I used Process Explorer as detailed here to see if I could find any flag that could work. I found the I also tried with Finally, I tried with some arbitrary flags: I'm out of ideas 😢, any help is welcome. Thanks, Rodrigo. |
For documentation purpose: the argument "isHidden" doesn't magically hide the application except with AppleScript. For all other cases, it adds the argument when the application is called at launch, but the application still needs to deal with it in a way or another. Using Electron, this could be done my calling some available methods for Windows and macOS though. But if IRC, this is not available under Linux. And for any other situation without Electron, the dev would still needs to do something of the argument to hide the application on startup. |
Clarify how it works in README.md |
I'm using this in an electron app here. It successfully launches the app on system startup but the
isHidden
option is not working and it doesn't hide the app even on setting it to true. Here is the relevant code -https://github.com/zulip/zulip-electron/blob/hidden-on-startup/app/main/startup.js
https://github.com/zulip/zulip-electron/blob/80c37fabb8bf05521c4df47552f82bcd3d41db5d/app/renderer/js/components/webview.js#L73
@adam-lynch let me know if I'm doing anything wrong here.
The text was updated successfully, but these errors were encountered: