From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../files/projectx-0.90.4.00_p33-xdg.patch | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 media-video/projectx/files/projectx-0.90.4.00_p33-xdg.patch (limited to 'media-video/projectx/files/projectx-0.90.4.00_p33-xdg.patch') diff --git a/media-video/projectx/files/projectx-0.90.4.00_p33-xdg.patch b/media-video/projectx/files/projectx-0.90.4.00_p33-xdg.patch new file mode 100644 index 000000000000..1cb675af4ebb --- /dev/null +++ b/media-video/projectx/files/projectx-0.90.4.00_p33-xdg.patch @@ -0,0 +1,44 @@ +--- src/net/sourceforge/dvb/projectx/common/Settings.java 2008-02-18 19:34:48.000000000 +0100 ++++ 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. ++} -- cgit v1.2.3