I use three features that save a file in a default folder which is different based on the Operating System. I would like to know here are these folder so I can remove the files manually if necessary.
I’m running Ubuntu Linux 20.4.1.
This article on the wiki mentions one of the three location I’m looking for. But even that location I cannot find.
Location 1:
// Allow screenshots
ScreenshotAppState screenShotState = new ScreenshotAppState();
this.stateManager.attach(screenShotState);
This usually produces a file like “screenshot.png”.
try {
settings.save("com/sample/highimpact");
} catch (BackingStoreException ex) {
System.out.println("Could not save game configurations.");
}
This one I think I was able to clear the file by going to Java in the Control Panel but that’s not available in Ubuntu Linux.
Previously I was able to find location 1 and 2 in the folder below when using Win10:
C:/Users/MyName/.jm3/
Where Jmonkey 3.6.1 is installed:
/home/myname/programs/jmonkeyplatform
Other folders I’m familiar with:
/opt
/opt/app-name
/usr/local
/usr/bin - Use for binaries.
/usr - This is for official use only. Do not install directly there.
Answer to Location 1:
I think this is never triggered because PrintScreen triggers the OS’s native screeshot utility and minimizes the game.
But If I were able to get around this I think it would store the .png file under .jm3.
One way to find out the location once you get it to save is to name the file to something unique like screenShotState.setFileName(“AAABBBCCC”) then search for "“AAABBBCCC” in the folder. That will lead you to the specific subfolder.