diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
commit | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (patch) | |
tree | c85d72f6f31f21f178069c9d41d41a7c1ff4b362 /media-video/projectx/files/projectx-0.91.0.10-xdg.patch | |
parent | 0706fc6986773f4e4d391deff4ad5143c464ea4e (diff) |
gentoo resync : 05.04.2019
Diffstat (limited to 'media-video/projectx/files/projectx-0.91.0.10-xdg.patch')
-rw-r--r-- | media-video/projectx/files/projectx-0.91.0.10-xdg.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/media-video/projectx/files/projectx-0.91.0.10-xdg.patch b/media-video/projectx/files/projectx-0.91.0.10-xdg.patch new file mode 100644 index 000000000000..fcb8b0e67e39 --- /dev/null +++ b/media-video/projectx/files/projectx-0.91.0.10-xdg.patch @@ -0,0 +1,44 @@ +--- Project-X/src/net/sourceforge/dvb/projectx/common/Settings.java 2008-02-18 19:34:48.000000000 +0100 ++++ Project-X/src/net/sourceforge/dvb/projectx/common/Settings.java 2010-07-31 19:44:59.151224244 +0200 +@@ -46,6 +46,8 @@ + import java.util.Set; + import java.util.TreeMap; + ++import xdg.*; ++ + import net.sourceforge.dvb.projectx.xinput.XInputDirectory; + + /** +@@ -56,7 +58,7 @@ + public class Settings extends Object { + + /** the default ini filename */ +- private static final String DEFAULT_INI = "X.ini"; ++ private static final String DEFAULT_INI = "Project-X.ini"; + + /** the current ini filename */ + private String inifile = ""; +@@ -75,7 +77,7 @@ + */ + public Settings() + { +- this(Resource.workdir + Resource.filesep + DEFAULT_INI); ++ this(xdg.config_home() + Resource.filesep + DEFAULT_INI); + } + + /** +@@ -161,6 +163,7 @@ + str = inifile; + + try { ++ xdg.mkdirs_file(str); + PrintWriter w = new PrintWriter(new FileWriter(str)); + + String base_key = "# Project-X INI"; +@@ -714,4 +717,4 @@ + return inifile; + } + +-} +\ Kein Zeilenumbruch am Dateiende. ++} |