JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 16.08.2017, 09:19
lugufiyep lugufiyep is offline
Modem User
 
Join Date: Aug 2017
Posts: 4
Question ~/.oracle_jre_usage folder

JDownloader keeps creating $HOME/.oracle_jre_usage folder on my Mac. Is there any way to disable it (or move to some ~/.config at least)?

Thanks.

EDIT:

Code:
$ java -version
java version "1.8.0_144"
Reply With Quote
  #2  
Old 16.08.2017, 09:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

Seems to be a bug in Oracle JRE. By default the tracker is disabled and should not create the folder. Try to google for a solution. This folder is not created by JDownloader but by Oracle Java.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 16.08.2017, 10:15
lugufiyep lugufiyep is offline
Modem User
 
Join Date: Aug 2017
Posts: 4
Default

Yep, it's a **External links are only visible to Support Staff**bug. And some don't even get it.

No solution as of now. Edited my crontab to check for it every 5 min and then delete it.

Thanks.

Last edited by lugufiyep; 16.08.2017 at 12:00.
Reply With Quote
  #4  
Old 16.08.2017, 10:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

I would delete it on startup or dont delete at all? or is it larger in size?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 16.08.2017, 11:59
lugufiyep lugufiyep is offline
Modem User
 
Join Date: Aug 2017
Posts: 4
Default

Quote:
I would delete it on startup
On JD's startup? How?
Reply With Quote
  #6  
Old 16.08.2017, 12:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

You chould use the Eventscripter in JDownloader and write script on event 'JDownloader started' and there you delete the folder. You should contact mgpai for help with eventscripter. he is very talented with it
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 16.08.2017, 13:45
lugufiyep lugufiyep is offline
Modem User
 
Join Date: Aug 2017
Posts: 4
Default

Well, this is probably wrong in sooo many ways, but failing to find proper documentation, I just added this
Code:
[{
  "eventTrigger" : "ON_JDOWNLOADER_STARTED",
  "enabled" : true,
  "name" : "my_cleaner",
  "script" : "var command = \"path-to-my-BASH-script";\ncallAsync(\nfunction(exitCode, stdOut, errOut) {}, command\n);",
  "eventTriggerSettings" : { },
  "id" : 1502883278933
}]
to cfg/org.jdownloader.extensions.eventscripter.EventScripterExtension.scripts.json.

And in case anyone's interested the BASH script in question is as simple as this:

Code:
#!/bin/bash
if [ -d /Users/YOUR_NAME/.oracle_jre_usage ]
then 
    rm -r /Users/YOUR_NAME/.oracle_jre_usage/
fi
Reply With Quote
  #8  
Old 16.08.2017, 13:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

If it works, then it isn't wrong Looks fine to me
Thanks for the feedback and providing your solution!
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 14:13.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.