Git Product home page Git Product logo

Comments (6)

phellipeandrade avatar phellipeandrade commented on July 20, 2024 2

Still relevant!

from node-auto-launch.

erik-404err avatar erik-404err commented on July 20, 2024 1

Im having the same problem. Manually launching the .desktop file i get the error: There was an error launching the application.
If anyone runs into this as well, you can go to /home/{yourName}/.config/autostart/ and open the .desktop file. it should look like this:

#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Version=1.0
Name=appName
Comment=appNamestartup script
Exec=/opt/Some Name/appName
StartupNotify=false
Terminal=false

you need to change this to:

Exec= "/opt/Some Name/appName"

this is especially sad for NW.js / electron since:
"options.path - String (optional for NW.js and Electron apps)"
~ https://github.com/Teamwork/node-auto-launch/blob/master/README.md

Hope that this helped someone and that this gets fixed soon (because you cant tell everyone installing you app to modify files)

from node-auto-launch.

Izurii avatar Izurii commented on July 20, 2024 1

As the originals developers of the package is not maintaining this project anymore, I replicated and will be taking over, if you could take a look at it I'll be happy. This issue is already solved in my version of the project.

https://github.com/Izurii/easy-auto-launch

from node-auto-launch.

miyanoshiyo avatar miyanoshiyo commented on July 20, 2024

Can you use auto-launch on Linux successfully? I cannot work it on linux

from node-auto-launch.

joel1st avatar joel1st commented on July 20, 2024

For those looking for a work around that allows you to still use the library:
You explicitly pass in a path if it is an AppImage, and add a back slash before any space characters (which escapes it).

  let name = 'Application Name';

  let autoLauncher = new AutoLaunch(
    process.env.APPIMAGE
      ? {
          name: name,
          path: `${process.env.APPIMAGE}`.replace(/ /g, '\\ '),
        }
      : {
          name: name,
        }
  );

from node-auto-launch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.