Compare commits

..

2 Commits
2.5.6 ... 2.6.1

Author SHA1 Message Date
eyedeekay
baec921a37 Enable systray on XFCE 2024-07-08 21:29:48 -04:00
eyedeekay
fd0bfb8b3d bail out of search earlier if we start in home 2024-07-08 17:39:29 -04:00
3 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Mon Jul 08 16:57:36 EDT 2024
build.number=724
#Mon Jul 08 17:35:59 EDT 2024
build.number=726

View File

@@ -590,6 +590,11 @@ public class I2PCommonBrowser {
* @return the found file or null if not found
*/
public File searchFile(File directory, String search) {
File hd = new File(System.getProperty("user.home"));
if (hd != null) {
if (directory.getAbsolutePath().equals(hd.getAbsolutePath()))
return null;
}
if (directory == null || !directory.exists() || !directory.canRead())
return null;
if (directory.isDirectory()) {

View File

@@ -190,7 +190,7 @@ public class I2PBrowserPlugin extends I2PBrowser implements ClientApp {
// Ubuntu GNOME does not work, SystemTray.isSupported() returns false
String xdg = System.getenv("XDG_CURRENT_DESKTOP");
boolean dflt = SystemVersion.isWindows() || SystemVersion.isMac() ||
//"XFCE".equals(xdg) ||
"XFCE".equals(xdg) ||
"KDE".equals(xdg) || "LXDE".equals(xdg);
return _context.getProperty(PROP_DTG_ENABLED, dflt);
}