-
Notifications
You must be signed in to change notification settings - Fork 134
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
After turning on administrator Required, there is no response after entering the password when starting under mac. #398
Comments
Hi @futurecad! |
Ok, I've just found where's the bug: JavaPackager/src/main/java/io/github/fvarrui/javapackager/packagers/MacPackager.java Lines 123 to 150 in f01e4f0
Some time ago a new feature which let use a custom launcher script was introduced ... creating this side effect. As you can see here, the |
Just released a SNAPHOT version to Maven Central:
|
I used 1.7.6 - SNAPSHOT version and still have the same problem. After double-clicking the package to run and entering the password, there is still no prompt. |
Ok, I'm not sure what's happening right now. Please, could you try to run your app from the terminal using |
Also doesn't work. How can I show you the relevant logs? |
Are you solving this problem now? |
Hi @futurecad! Yes, but I haven't found a solution yet. I'll tell you something if figure out what's happening. You can find some logs in Console.app |
Hi @futurecad! |
1.7.6 - SNAPSHOT Another problem Null reference [template 'mac/startup.vtl', line 4, column 48]: $SCRIPTPATH cannot be resolved. |
I received printouts in my in-application logs but did not successfully start the gui interface. |
The program can be started normally through startup, but it needs to be set - Djava.awt.headless=false |
Hi @futurecad! |
not yet |
Hi, i have same problem. I tried download "issue-398" branch in mavenLocal, but "javapackager" plugin in Gradle doesn`t work. Also i tried SNAPSHOT-1.7.6-20240330.174335-4, but i have same reaction on "isAdministratorRequired = true". Can you load this in another SNAPSHOT please? |
Hi @futurecad and @AridanWarlock!
Do you mean it cannot be built? Which tool versions are you using?
I'm sorry, snapshot versions are not available forever, but just released a new one for this issue:
I wonder if that the app finally starts with administrator privileges using |
Hi @fvarrui! |
Hi, @fvarrui! |
Hi @futurecad! |
Maybe it would be posible to create a native launcher (for x86 and/or aarch64) which asks for user credentials and runs universalJavaAplicationScript as admin? |
@AridanWarlock @fvarrui |
Not sure if it's related to this, but, it seems there's an issue starting MacOS apps using a BASH script. Does your app start if |
I'm submitting a…
Short description of the issue/suggestion:
Steps to reproduce the issue/enhancement:
What is the expected behavior?
After turning on administrator Required, there is no response after entering the password when starting under mac.
What is the current behavior?
Turn on administrator Required and then double-click the package program but it cannot run after entering the password.
Do you have outputs, screenshots, demos or samples which demonstrate the problem or enhancement?
What is the motivation / use case for changing the behavior?
I need to start this app as administrator
Please tell us about your environment:
macos14.4 jdk21 javapackager1.7.5
Other information (e.g. related issues, suggestions how to fix, links for us to have context)
The text was updated successfully, but these errors were encountered: