All Projects → typicode → User Startup

typicode / User Startup

Licence: mit
Auto start commands when you log in (cross-platform)

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to User Startup

SwiftVer
Easily Manage Versioning in MacOS, iOS, watchOS, and tvOS projects.
Stars: ✭ 23 (-80.67%)
Mutual labels:  plist
Tbox
🎁 A glib-like multi-platform c library
Stars: ✭ 3,800 (+3093.28%)
Mutual labels:  plist
Fontblaster
Programmatically load custom fonts into your iOS and tvOS app.
Stars: ✭ 1,000 (+740.34%)
Mutual labels:  plist
ichat2json
Reads an .ichat binary plist file and writes newline-separated JSON to STDOUT
Stars: ✭ 30 (-74.79%)
Mutual labels:  plist
Libplist
A library to handle Apple Property List format in binary or XML
Stars: ✭ 330 (+177.31%)
Mutual labels:  plist
Prephirences
Prephirences is a Swift library that provides useful protocols and convenience methods to manage application preferences, configurations and app-state. UserDefaults
Stars: ✭ 548 (+360.5%)
Mutual labels:  plist
defaults.sh
 User Defaults Plist → Shell Script converter with Regex filtering
Stars: ✭ 20 (-83.19%)
Mutual labels:  plist
Countries States Cities Database
🌍 World countries, states, regions, provinces, cities, towns in JSON, SQL, XML, PLIST, YAML, and CSV. All Countries, States, Cities with ISO2, ISO3, Country Code, Phone Code, Capital, Native Language, Timezones, Latitude, Longitude, Region, Subregion, Flag Emoji, and Currency. #countries #states #cities
Stars: ✭ 1,130 (+849.58%)
Mutual labels:  plist
Fastlane Plugin Versioning
Extends fastlane versioning actions. Allows to set/get versions without using agvtool and do some other small tricks.
Stars: ✭ 357 (+200%)
Mutual labels:  plist
St3 Binaryplist
Automatically converts binary property lists to XML when opened and writes them back out to binary when saved.
Stars: ✭ 35 (-70.59%)
Mutual labels:  plist
Matebookxpro Hackintosh
Hackintosh Solution for the Huawei Matebook X Pro
Stars: ✭ 257 (+115.97%)
Mutual labels:  plist
Infokit
Strongly Typed access to the Info.plist for iOS, macOS and tvOS.
Stars: ✭ 276 (+131.93%)
Mutual labels:  plist
Swinjectpropertyloader
Swinject extension to load property values from resources
Stars: ✭ 24 (-79.83%)
Mutual labels:  plist
NppBplistPlugin
Notepad++ binary plist plugin
Stars: ✭ 22 (-81.51%)
Mutual labels:  plist
Jsonj
A fluent Java API for manipulating json data structures
Stars: ✭ 42 (-64.71%)
Mutual labels:  plist
LNPropertyListEditor
A property list editor for macOS, similar to Xcode's.
Stars: ✭ 79 (-33.61%)
Mutual labels:  plist
Cfpropertylist
PHP Implementation of Apple's PList (binary and xml)
Stars: ✭ 423 (+255.46%)
Mutual labels:  plist
Clover Configurator Pro
A free Plist Editor with some optional facilities for Clover UEFI boot loader
Stars: ✭ 70 (-41.18%)
Mutual labels:  plist
Contacts Swiftui
A contacts app built using SwiftUI! Scroll through a dynamic list of contacts, bring up detail views with contact info, and mark contacts as favorites!
Stars: ✭ 43 (-63.87%)
Mutual labels:  plist
Cordova Plugin Ios Camera Permissions
Cordova / PhoneGap Plugin Permission Settings for NSCameraUsageDescription and NSPhotoLibraryUsageDescription in iOS 11 by adding a declaration to the Info.plist file, see:
Stars: ✭ 34 (-71.43%)
Mutual labels:  plist

user-startup Build Status npm version

Automatically run commands when the user logs in. Used in hotel and stop-server.

  • No admin privileges required
  • Cross-platform (OS X, Linux and Windows)

Install

npm install user-startup --save

Usage

Create a new instance.

const Startup = require('user-startup')
let startup

try {
  startup = Startup()
} catch (err) {
  // Unsupported platform
}

Add startup script but doesn't spawn process. Use create to create startup file and process at the same time.

startup.create(
  'my-script', // id
  process.execPath, // cmd
  ['/some/path/app.js'], // args
  '/some/path/out.log' // out
)

Remove startup script.

startup.remove('my-script')

Note: you should check that root isn't running this code to avoid startup scripts being created in root's home directory. Use sudo-block or is-root.

API

Startup()

Creates a new instance. Throws an error if platform isn't OS X, Linux or Windows.

add(id, cmd[, args[, out]])

  • id <String> id
  • cmd <String> command
  • args <Array> optional list of string arguments
  • out <String> optional path to output file (directory needs to exist before)

Creates startup script.

create(id, cmd[, args[, out]])

Creates a startup script and spawns process.

remove(id)

Removes startup script.

dir

Returns startup script directory.

getFile(id)

Returns startup script path.

How it works

  • On OS X, it creates a plist file in ~/Library/LaunchAgents
  • On Linux, it creates a desktop file in ~/.config/autostart
  • On Windows, it creates a vbs script in AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

License

MIT - Typicode

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].