
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
electron-winstore-auto-launch
Advanced tools
Configure your Electron to start automatically when the user logs in Edit
This is a convenience module allowing for easy configuration of startup tasks for Windows Store apps written with Electron. Basically, it allows you either enable or disable the automatic launch of your app when the user logs in.
Before you can use this module, you need to add an <Extension>
to your appxmanifest.xml
. An app must register for the windows.startup
extension category in its manifest to be activated at startup or when a user logs in.
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
IgnorableNamespaces="uap uap3">
...
<Applications>
<Application Id="Slack" Executable="app\Slack.exe" EntryPoint="Windows.FullTrustApplication">
...
<Extensions>
<desktop:Extension
Category="windows.startupTask"
Executable="app\Slack.exe"
EntryPoint="Windows.FullTrustApplication">
<desktop:StartupTask TaskId="SlackStartup" Enabled="true" DisplayName="Slack" />
</desktop:Extension>
</Extensions>
</Application>
</Applications>
</Package>
This module assumes that you have just one startup task. If you have more than one, it'll automatically use the first one.
The module exports one single static class WindowsStoreAutoLaunch
with three main methods:
import { WindowsStoreAutoLaunch } from 'electron-winstore-auto-launch';
// Attempts to enable the task
WindowsStoreAutoLaunch.enable()
// Attempts to disable the task
WindowsStoreAutoLaunch.disable()
// Returns the current status of the task
WindowsStoreAutoLaunch.getStatus()
The status can be disabled
(0), disabledByUser
(1), or enabled
(2). If the app's startup task was disabled by the user in the task manager, it can no longer be programmatically enabled.
The module also exports these helper methods:
import { WindowsStoreAutoLaunch } from 'electron-winstore-auto-launch';
// Returns an IList/Array of all startupTasks registered in the manifest
WindowsStoreAutoLaunch.getStartupTasks()
// Returns the first found startupTask
WindowsStoreAutoLaunch.getStartupTask()
MIT, please see LICENSE
for details.
FAQs
Configure your Electron to start automatically when the user logs in Edit
The npm package electron-winstore-auto-launch receives a total of 543 weekly downloads. As such, electron-winstore-auto-launch popularity was classified as not popular.
We found that electron-winstore-auto-launch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.