Removed desktop path detection. Was too ugly and unreliable.
[svjatoslav_commons.git] / src / main / java / eu / svjatoslav / commons / file / CommonPathResolver.java
old mode 100644 (file)
new mode 100755 (executable)
index 81f9213..06e82c2
@@ -1,36 +1,15 @@
 /*
- * Svjatoslav Commons - shared library of common functionality.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- * 
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2 of the GNU General Public License
- * as published by the Free Software Foundation.
+ * Svjatoslav Commons - shared library of common functionality. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
  */
-
 package eu.svjatoslav.commons.file;
 
 import java.io.File;
 
 public class CommonPathResolver {
 
-       public static File getDesktopDirectory() {
-               String desktopPath = System.getProperty("user.home") + "/Desktop";
-
-               File desktopFile = new File(desktopPath);
-               if (desktopFile.exists())
-                       return desktopFile;
-
-               desktopPath = System.getProperty("user.home") + "/Рабочий стол";
-
-               desktopFile = new File(desktopPath);
-               if (desktopFile.exists())
-                       return desktopFile;
-
-               return null;
-       }
-
-       public static File getHomeDirectory() {
-               return new File(System.getProperty("user.home"));
-       }
+    public static File getHomeDirectory() {
+        return new File(System.getProperty("user.home"));
+    }
 
 }