Socket
Socket
Sign inDemoInstall

felixriddle.desktop-entry

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    felixriddle.desktop-entry

Desktop entry abstraction.


Version published
Maintainers
1
Install size
17.5 kB
Created

Readme

Source

Desktop entry

Desktop entry abstraction.

Creating a new entry

const folderDirectory = `${__dirname}/../../`;
const cmd = `cd ${folderDirectory} && npm run start -- --start`;
const entry = new DesktopEntry("myAwesomeApp", cmd);

Example

An example extracted from 'good-roots-startup'

It creates a desktop entry and enables it at startup on linux systems.

/**
 * Startup
 */
function enableStartup() {
    const folderDirectory = `${__dirname}/../../`;
    
    const cmd = `cd ${folderDirectory} && npm run start -- --start`;
    const dot = new DesktopEntry("good-roots", cmd);
    dot.setName("Good roots startup")
        .saveAtStartup();
}

FAQs

Last updated on 28 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc