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

jpass.properties is ignored when the application is started from other directory where the jar file is #21

Closed
gaborbata opened this issue Jan 26, 2021 · 0 comments
Assignees
Labels

Comments

@gaborbata
Copy link
Owner

Related details from #19:

In windows I start the jar from a batch file that is in the same directory as the jar and the jpass.properties file.
In linux I had a bash file in a different location and in the bash file uses variables:
${java11Home}/bin/java -jar ${jpassDir}/${jarFile} ${jpassDir}/${jpFile}
Here the ${jpassDir} specifies the directory that contains the jar, the jpass.properties and the encrypted *.jpass file containing the password entries. I did this mainly because I was comparing different versions of jpass builds (different resulting jars) and run with different versions of the JDK, each configuration run with its own bash file. (In Windows I only have the JDK 11.0.9 installed).

Now I noticed that running jpass this way the jpass.properties is ignored. I took more notice because I changed the ui.theme.dark.mode.enabled=true to see if the FlatDarkLaf was really used with your fix. On Windows I saw the dark look and feel, but in Linux I didn't.
However, when I run in a console in the same directory where jar, jpass.properties and *.jpass file are in then the dark theme is enabled, which looks cool, by the way.
~/resources/pw/jpass$ /home/willem/App/Java/jdk-11.0.5/bin/java -jar jpass-0.1.21-SNAPSHOT.jar myPasswords.jpass 

@gaborbata gaborbata self-assigned this Jan 26, 2021
@gaborbata gaborbata added the bug label Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant