mbien commented on PR #8756:
URL: https://github.com/apache/netbeans/pull/8756#issuecomment-3240504989

   I am somewhat mixed on this. On one hand I think that if a terminal behaves 
differently in the IDE it is essentially a bug (that is also why I think that 
the launcher should probably not export `GDK_SCALE` on linux). On the other 
hand I can see that `netbeans` could be seen as special kind of program and the 
utility for it for users who run NB from the zip (I am one of them, but I do 
have `nb` already as **alias** without adding anything to the path, see 4th 
paragraph).
   
   I am a bit worried about the can of worms this opens (why is javac, mvn, ant 
etc not in path too etc) and that it is set by default without opt-in or out.
   
   Maybe the solution is to store it in an env var and add a text field to the 
terminal settings where users can configure path extensions in the sense of 
`PATH:NB_LAUNCHER_PATH`. (might have to be hidden on non-unix based systems 
since cygwin+windows might produce interesting results here and it could have 
`NB_DEFAULT_JDK` etc too in future)
   
   I am wondering if `PATH` is even the right vehicle for this. Letting the NB 
terminal run `alias nb=NB_LAUNCHER_PATH` on start might have the smallest risk 
for side effects and cover the intended usecase.
   
   > EDIT : I'm currently -1 to the PATH modification with prepend (..)
   
   I agree, prepend would break existing user setups too, so if at all, it 
would have to be append IMO.
   
   (slightly related to this proposal would be: path selection -> right click 
-> open in NB or System for output and terminal as quality of life improvement)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to