https://github.com/bip901/runonstartup
A cross-platform .NET library to register programs to run at computer startup.
https://github.com/bip901/runonstartup
autostart cross-platform dotnet dotnet-core linux startup-applications windows
Last synced: 12 months ago
JSON representation
A cross-platform .NET library to register programs to run at computer startup.
- Host: GitHub
- URL: https://github.com/bip901/runonstartup
- Owner: Bip901
- License: mit
- Created: 2023-07-24T17:49:28.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-22T10:38:37.000Z (about 2 years ago)
- Last Synced: 2024-11-01T20:29:21.586Z (over 1 year ago)
- Topics: autostart, cross-platform, dotnet, dotnet-core, linux, startup-applications, windows
- Language: C#
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# RunOnStartup
[](https://www.nuget.org/packages/RunOnStartup/)
A cross-platform .NET library to register programs to run at computer startup.
# Usage
```csharp
using RunOnStartup;
// Define a unique key - this string will identify your program to unregister later
const string UNIQUE_NAME = "cool-executable-42dad1492ea57616";
// Register an executable to run whenever the current user signs in
RunOnStartupManager.Instance.Register(UNIQUE_NAME, @"/path/to/executable", allUsers: false);
// To unregister:
RunOnStartupManager.Instance.Unregister(UNIQUE_NAME, allUsers: false);
```