Menu

#46 jGameBase Temp Folder

v0.72
closed-fixed
None
5
2023-12-16
2023-12-11
Anonymous
No

Not a bug just wondering if there was away to change the folder files get extracted to on Mac. Currently its in the /var directory. Not really a problem unless you have to change disks with certain emulators then its either inaccessible through the emulators file manager or you have to navigate through multiple folders to find the file. I looked throughout the jGameBase files and didn't see anything except a file called global.ini which had a DIR section.

This is one example of where jgamebase extracts files on my Mac:

/var/folders/dt/ysnpr2_n6g57cq_7k1hc1d3h0000gn/T/com.apple.shortcuts.mac-helper/jgamebase_15282265965550156094

Like I said not a big deal just wondering. Keep up the great work.

Discussion

  • F. Gerbig

    F. Gerbig - 2023-12-15

    Hello,

    jGameBase uses the default location of the operating system for temporary directories. In Java this is the property "java.io.tmpdir". So you can start jgb with a different temporary directory like

    java -Dpolyglot.js.nashorn-compat=true -Djava.io.tmpdir=<PATH TO TEMPDIR> -jar jgamebase.jar

    e.g.
    java -Dpolyglot.js.nashorn-compat=true -Djava.io.tmpdir=/home/frank/Schreibtisch/TEMPTEST -jar jgamebase.jar

    in the jGameBase directory.
    Hope that helps.

    Best regards,
    Frank

     
  • F. Gerbig

    F. Gerbig - 2023-12-15
    • status: open --> pending
    • assigned_to: F. Gerbig
     
    • Anonymous

      Anonymous - 2023-12-15

      Thanks. Works perfectly!

       
  • F. Gerbig

    F. Gerbig - 2023-12-16
    • status: pending --> closed-fixed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →