Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error making desktop alias #101

Open
shannah opened this issue Mar 20, 2023 · 4 comments
Open

Error making desktop alias #101

shannah opened this issue Mar 20, 2023 · 4 comments

Comments

@shannah
Copy link
Owner

shannah commented Mar 20, 2023

image

@shannah
Copy link
Owner Author

shannah commented Mar 20, 2023

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.

@shannah
Copy link
Owner Author

shannah commented Mar 20, 2023

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.

@dlemmermann
Copy link

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

@shannah
Copy link
Owner Author

shannah commented Mar 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants