felixriddle.desktop-entry
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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();
}

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i felixriddle.desktop-entry

    Weekly Downloads

    0

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    17.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • fedekiller999