Coder Social home page Coder Social logo

Error making desktop alias about jdeploy HOT 4 OPEN

shannah avatar shannah commented on July 21, 2024
Error making desktop alias

from jdeploy.

Comments (4)

shannah avatar shannah commented on July 21, 2024

This is the relevant section of code.

int result = Runtime.getRuntime().exec(new String[]{"ln", "-s", installAppPath.getAbsolutePath(), desktopAlias.getAbsolutePath()}).waitFor();
if (result != 0) {
throw new RuntimeException("Failed to make desktop alias.");
}

Some possibilities here:

  1. It failed to delete previous desktop symlink.
  2. There was a permissions issue in creating the symlink. (including possibly gatekeeper getting in the way?)
  3. Either the source path or destination path has some issue that is tripping up the ln command.

from jdeploy.

shannah avatar shannah commented on July 21, 2024

Note: Before looking at the code, I speculated that the icon could have caused some problems, but that is clearly not the case. Cause is either related to the app name, or file permissions.

from jdeploy.

dlemmermann avatar dlemmermann commented on July 21, 2024

I encountered this issue on Mac OS 13.2.1 on Intel. iMac Pro.

from jdeploy.

shannah avatar shannah commented on July 21, 2024

Unable to reproduce on Monterey 12.3.1, Ventura 13.0, or Ventura 13.2.1. (I tried on 13.0, then updated to 13.2.1, and still couldn't reproduce).

This must be either related to the environment, or specific to the app.

@dlemmermann Can you share the app that this was happening with?

There may be some helpful log files inside the ~/.jdeploy/log directory also.

from jdeploy.

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.