mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-09 04:48:38 -05:00
* maybe a bad idea to delete any hidden folders... delete my .svn folder... limit cleanup to cache|temp|grape so nothing unexpected ever gets deleted
This commit is contained in:
parent
5dbd5b7c6d
commit
e6260ef0f9
@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
java -Dunixfs=false -Xmx256m -Dapplication.deployment=deb -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/.temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -jar /usr/share/filebot/FileBot.jar "$@"
|
||||
java -Dunixfs=false -Xmx256m -Dapplication.deployment=deb -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -jar /usr/share/filebot/FileBot.jar "$@"
|
||||
|
@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
java -Dunixfs=false -Dapplication.deployment=ipkg -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/.temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -jar /usr/share/filebot/FileBot.jar "$@"
|
||||
java -Dunixfs=false -Dapplication.deployment=ipkg -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -jar /usr/share/filebot/FileBot.jar "$@"
|
||||
|
@ -21,7 +21,7 @@
|
||||
-Dsun.net.client.defaultReadTimeout=25000
|
||||
|
||||
# put all temporary files here
|
||||
-Djava.io.tmpdir="%EXEDIR%/.temp"
|
||||
-Djava.io.tmpdir="%EXEDIR%/temp"
|
||||
|
||||
# look for native libs here
|
||||
-Djna.library.path="%EXEDIR%"
|
||||
|
@ -3,4 +3,4 @@ SOURCE="${BASH_SOURCE[0]}"
|
||||
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
||||
dir_bin="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
|
||||
java -Dunixfs=false -Xmx256m -Dapplication.deployment=portable "-Dapplication.dir=$dir_bin" "-Djava.io.tmpdir=$dir_bin/.temp" "-Duser.home=$dir_bin" "-Djna.library.path=$dir_bin" "-Djava.library.path=$dir_bin" -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory -Dnet.sourceforge.tuned.prefs.file=prefs.properties -jar "$dir_bin/FileBot.jar" "$@"
|
||||
java -Dunixfs=false -Xmx256m -Dapplication.deployment=portable "-Dapplication.dir=$dir_bin" "-Djava.io.tmpdir=$dir_bin/temp" "-Duser.home=$dir_bin" "-Djna.library.path=$dir_bin" "-Djava.library.path=$dir_bin" -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory -Dnet.sourceforge.tuned.prefs.file=prefs.properties -jar "$dir_bin/FileBot.jar" "$@"
|
@ -3,6 +3,7 @@ package net.sourceforge.filebot;
|
||||
|
||||
|
||||
import static java.awt.GraphicsEnvironment.*;
|
||||
import static java.util.regex.Pattern.*;
|
||||
import static javax.swing.JFrame.*;
|
||||
import static net.sourceforge.filebot.Settings.*;
|
||||
import static net.sourceforge.tuned.FileUtilities.*;
|
||||
@ -90,7 +91,7 @@ public class Main {
|
||||
// clear preferences and cache
|
||||
System.out.println("Reset preferences and clear cache");
|
||||
for (File cache : getApplicationFolder().listFiles(FOLDERS)) {
|
||||
if (cache.getName().startsWith(".")) {
|
||||
if (matches("cache|temp|grape", cache.getName())) {
|
||||
delete(cache);
|
||||
}
|
||||
}
|
||||
@ -324,7 +325,7 @@ public class Main {
|
||||
*/
|
||||
private static void initializeCache() {
|
||||
// prepare cache folder for this application instance
|
||||
File cacheRoot = new File(getApplicationFolder(), ".cache");
|
||||
File cacheRoot = new File(getApplicationFolder(), "cache");
|
||||
|
||||
try {
|
||||
for (int i = 0; true; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user