-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix for issue 7641: Wrong path to TeXstudio #7664
Conversation
} else { | ||
programPath = Path.of(progFiles, programName + DEFAULT_EXECUTABLE_EXTENSION).toString(); | ||
} | ||
File program = new File(programPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use Files.exist(path)
} | ||
|
||
progFiles = System.getenv("ProgramFiles"); | ||
System.out.println(progFiles); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a left over from debugging. If you need debug output use LOGGER.debug(...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emmm,I was too careless. Thanks for your suggestion!
Just some minor code changes, but otherwise lgtm! |
Fixes #7641
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)Bug:
No matter where the extended applications are, the default path of them (taken texstudio as example) would be set as
C:\Program Files (x86)\TeXstudio\texstudio.exe
.The way to fix:
I verify the existence of extended applications under related default path. If there is no
texstudio.exe
underC:\Program Files (x86)\TeXstudio\
andC:\Program Files\TeXstudio\
, the function detectProgramPath() will return String value "", namely the default path will remain unset.