Replies: 1 comment 2 replies
-
Have you considered hardlinks on Windows for the edit? They break a lot more easily than a symlink but don't require admin privileges. Also, there's this concept of executable shims https://docs.chocolatey.org/en-us/features/shim - not sure it would apply with a file. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background:
JBang currently uses symbolic links for things like setting the default JDK to use and for it's
edit
command.Problem
But on WIndows creating symbolic links needs elevated privileges, you either need to be an administrator or you need to enable Developer Mode. Running JBang as an admin is not a viable option and not everybody is able or willing to enable Developer Mode just to run JBang.
So in Windows there exists an additional feature, called Junctions, which is similar to symbolic links and which doesn't need any elevated privileges, but it can only be used for directories, not files.
Using junctions would work just fine for our JDK management because that only uses symbolic links to folders but JBang's
edit
command uses symbolic links to files, so junctions won't work in that case.Solutions?
edit
issue). So not an optionedit
command. This is obviously not ideal.edit
command, but I think it would hard or impossible to offer the same features.Beta Was this translation helpful? Give feedback.
All reactions